From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Takafumi Arakaki <aka.tkf@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] json-encode-char bug?
Date: Thu, 27 Sep 2012 09:13:09 -0400 [thread overview]
Message-ID: <jwvtxujwqzf.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAPM+gBT+pfuA2KODCXPfkCLdvJJyDoCGX7oXW5qce4aan2Cgfw@mail.gmail.com> (Takafumi Arakaki's message of "Thu, 27 Sep 2012 12:22:15 +0200")
> 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
next prev parent reply other threads:[~2012-09-27 13:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-27 10:22 [PATCH] json-encode-char bug? Takafumi Arakaki
2012-09-27 13:13 ` Stefan Monnier [this message]
2012-09-27 17:32 ` Takafumi Arakaki
2012-09-27 22:55 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvtxujwqzf.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=aka.tkf@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.