[notmuch] [PATCH] json_quote_str should handle non-ASCII characters

Carl Worth cworth at cworth.org
Tue Apr 13 08:36:06 PDT 2010


On Thu, 04 Mar 2010 11:40:03 +0100, Gregor Hoffleit <gregor at hoffleit.de> wrote:
> The current code in json_quote_str() only accepts strict printable ASCII
> code points (i.e. 32-127), all other code points are dropped from the
> JSON output.
> 
> This patch accepts code points 32-255.

Thanks, Gregor!

I've pushed this patch out now.

And I noted in our TODO file that we really should add some tests to the
test suite to exercise our --format=json code paths. It would be nice to
ensure we don't have any regressions in this area later.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100413/9b68e96e/attachment.pgp>


More information about the notmuch mailing list