Nick Coghlan added the comment:

I believe the problem may be that we can't readily tell the difference between 
"PYTHONIOENCODING=ascii" and "PYTHONIOENCODING=ascii:strict", and in the former 
case we'd ideally still end up using "surrogateescape" by default.

That said, the real intent of the change was "If the detected encoding is 
ASCII, enable surrogateescape automatically", and detecting the POSIX locale 
was a proxy for that. We didn't account for PYTHONIOENCODING being used to 
select a more sensible encoding.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25339>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to