mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 06:50:23 -08:00
* lisp/json.el (json-encode-char): Codes 127 isn't "ASCII printable" either.
This commit is contained in:
parent
9cad61d6db
commit
e28e67b3a3
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
2012-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
|
2012-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||||
|
|
||||||
* 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 <rgm@gnu.org>
|
2012-09-27 Glenn Morris <rgm@gnu.org>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -315,7 +315,7 @@ representation will be parsed correctly."
|
||||||
(control-char
|
(control-char
|
||||||
(format "\\%c" control-char))
|
(format "\\%c" control-char))
|
||||||
;; ASCIIish printable character.
|
;; ASCIIish printable character.
|
||||||
((and (> char 31) (< char 128))
|
((and (> char 31) (< char 127))
|
||||||
(format "%c" char))
|
(format "%c" char))
|
||||||
;; Fallback: UCS code point in \uNNNN form.
|
;; Fallback: UCS code point in \uNNNN form.
|
||||||
(t
|
(t
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue