[issue33405] PYTHONCOERCECLOCALE no longer being respected
STINNER Victor
report at bugs.python.org
Wed May 2 03:50:12 EDT 2018
STINNER Victor <vstinner at redhat.com> added the comment:
> PYTHONCOERCECLOCALE=0 LANG=C python3.7 -c "import sys; print(sys.stdin.encoding)"
Are you aware of the PEP 540 "UTF-8 Mode"? It's also enabled automatically by the POSIX locale. If you hate UTF-8, you have to use:
PYTHONCOERCECLOCALE=0 python3.7 -X utf8=0
or
PYTHONCOERCECLOCALE=0 PYTHONUTF8=0 python3.7
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33405>
_______________________________________
More information about the Python-bugs-list
mailing list