From e28e67b3a36f1534e2659fbfde90846a9fd5df6c Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 27 Sep 2012 18:55:03 -0400 Subject: [PATCH] * lisp/json.el (json-encode-char): Codes 127 isn't "ASCII printable" either. --- lisp/ChangeLog | 2 +- lisp/json.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2