STINNER Victor <[email protected]> added the comment: If the standard output is not a TTY, Python uses ASCII encoding for sys.stdout: ./python -c "import sys;print(sys.stdout.encoding)"|cat => ascii.
This issue remembers me: #8533 (regrtest: use backslashreplace error handler for stdout). ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue8663> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
