[issue25339] sys.stdout.errors is set to "surrogateescape"

Serhiy Storchaka report at bugs.python.org
Wed Oct 14 13:02:57 EDT 2015


Serhiy Storchaka added the comment:

I'm not sure this is a bug, but it looks at least unexpected, that surrogateescape is used with non-ASCII encoding. For example my last test for issue19058 fails on POSIX locale in 3.5+, and it is not so easy to make it working.

May be change error handler to surrogateescape only if PYTHONIOENCODING is not specified?

----------

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


More information about the Python-bugs-list mailing list