[issue27413] Add an option to json.tool to bypass non-ASCII characters.

Wei-Cheng Pan report at bugs.python.org
Sun Aug 28 04:45:43 EDT 2016


Wei-Cheng Pan added the comment:

1. Replaced non-ASCII literals to \uXXXX
2. Removed failed assertion

Test passed with LC_ALL=en_US and LC_ALL=en_US.UTF-8 .

I've tried to use locale.getdefaultlocale(), but seems the output string will vary in different locales.

----------
Added file: https://bugs.python.org/file44246/json-add-an-option-to-bypass-non-ascii-characters-v4.patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27413>
_______________________________________


More information about the Python-bugs-list mailing list