[issue18713] Enable surrogateescape on stdin and stdout when appropriate

STINNER Victor report at bugs.python.org
Thu Aug 22 13:50:52 CEST 2013


STINNER Victor added the comment:

> Is it a bug in your patch, or is it deliberate?

It was not deliberate, and I think that it would be more consistent to
use the same error handler (surrogateescape) when only the encoding is
changed by the PYTHONIOENCODING environment variable. So
surrogateescape should be used even with PYTHONIOENCODING=utf-8.

----------

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


More information about the Python-bugs-list mailing list