From: Stefan Monnier Date: Thu, 27 Sep 2012 22:55:03 +0000 (-0400) Subject: * lisp/json.el (json-encode-char): Codes 127 isn't "ASCII printable" either. X-Git-Tag: emacs-24.2.90~244^2~55 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e28e67b3a36f1534e2659fbfde90846a9fd5df6c;p=emacs.git * lisp/json.el (json-encode-char): Codes 127 isn't "ASCII printable" either. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 079a3feaea1..1c9c7c3c449 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,6 +1,6 @@ 2012-09-27 Stefan Monnier - * json.el (json-encode-char): Codes 128-160 aren't "ASCII printable". + * json.el (json-encode-char): Codes 127-160 aren't "ASCII printable". 2012-09-27 Glenn Morris diff --git a/lisp/json.el b/lisp/json.el index 1a70d0b40ce..8167bfe93f2 100644 --- a/lisp/json.el +++ b/lisp/json.el @@ -315,7 +315,7 @@ representation will be parsed correctly." (control-char (format "\\%c" control-char)) ;; ASCIIish printable character. - ((and (> char 31) (< char 128)) + ((and (> char 31) (< char 127)) (format "%c" char)) ;; Fallback: UCS code point in \uNNNN form. (t