Nick Coghlan added the comment:

Getting rid of mojibake was the goal, surrogateescape was about dealing with 
cases where the "avoid mojibake" checks were spuriously breaking round-tripping 
between OS APIs due to other configuration errors (with LANG=C being set, or 
LANG not being set at all being the main problem). Other "high mojibake risk" 
power tools (like changing the encoding of an already open stream) are likely 
to return in the future, since there *are* cases where they're the right answer 
(e.g. you can't right an iconv equivalent in Python 3 at the moment, we need 
issue 15216 implemented before that will be possible).

+1 for this solution - see issue 19846 for the long discussion which got us to 
this point (there are a few unrelated tangents, a couple of them my fault, but 
this is definitely an improvement over the status quo.

----------

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

Reply via email to