emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] json-encode-char bug?


From: Stefan Monnier
Subject: Re: [PATCH] json-encode-char bug?
Date: Thu, 27 Sep 2012 09:13:09 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

> json.el works very well but I think I found a bug.  It prints
> character 161 (Non-breaking space) as a raw character, but it causes

NBSP is actually 160, but I see what you mean.

>       ;; ASCIIish printable character
> -     ((and (> char 31) (< char 161))
> +     ((and (> char 31) (< char 160))

Actually, ASCII only goes up to 127, so I've changed the 161 to 128
(now that I think about it, ASCII 127 is DEL which isn't very printable
either so maybe I should have replaced it with 127).


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]