[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

R. David Murray report at bugs.python.org
Wed Aug 24 15:36:16 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

Ah, this was actually fixed in 3.2, so it is only 2.7 where there is the different (and long standing) problem of output of unicode to a pipe.

So, the doc issue boils down to mentioning how the encoding for stdout/stderr is derived (LOCALE, overridden by PYTHONIOENCODING if set, as far as I can tell).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12832>
_______________________________________


More information about the Python-bugs-list mailing list