Skip Menu |

This queue is for tickets about the JSON-PP CPAN distribution.

Report information
The Basics
Id: 123653
Status: resolved
Priority: 0/
Queue: JSON-PP

People
Owner: Nobody in particular
Requestors: dom [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: "Wide character in print" in json_pp
As reported on the Debian BTS at <https://bugs.debian.org/880798>, when outputting JSON containing UTF8 characters with this tool, this warning is observed. $ cat /tmp/test.json {"foo": "\u9996" } $ json_pp < /tmp/test.json Wide character in print at /usr/bin/json_pp line 82, <STDIN> chunk 1. { "foo" : "首" } $ json_pp -json_opt utf8,pretty < /tmp/test.json { "foo" : "首" } Would it be possible to avoid the need to pass utf8 as an option when literal utf8 will be printed, thus avoiding this confusing warning? Cheers, Dominic.
On Sat Nov 18 00:02:39 2017, DOM wrote: Show quoted text
> As reported on the Debian BTS at <https://bugs.debian.org/880798>, > when outputting JSON containing UTF8 characters with this tool, this > warning is observed. > > $ cat /tmp/test.json > {"foo": "\u9996" } > $ json_pp < /tmp/test.json > Wide character in print at /usr/bin/json_pp line 82, <STDIN> chunk 1. > { > "foo" : "首" > } > $ json_pp -json_opt utf8,pretty < /tmp/test.json > { > "foo" : "首" > } > > Would it be possible to avoid the need to pass utf8 as an option when > literal utf8 will be printed, thus avoiding this confusing warning? > > Cheers, > Dominic.
Thanks for the report. Fixed and shipped 2.95.