STINNER Victor <vstin...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue33405> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com