STINNER Victor <vstin...@redhat.com> added the comment: I cannot reproduce the issue with the future Python 3.7 beta4:
vstinner@apu$ PYTHONCOERCECLOCALE=0 LANG=C ./python -X utf8=0 -c "import sys; print(sys.stdin.encoding)" ANSI_X3.4-1968 vstinner@apu$ LANG=C ./python -X utf8=0 -c "import sys; print(sys.stdin.encoding)" UTF-8 vstinner@apu$ ./python Python 3.7.0b3+ (heads/3.7:887b5f8fc6, May 2 2018, 09:54:18) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> The master branch works also as expected. ---------- _______________________________________ 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