[Python-Dev] Python 3.5 now uses surrogateescape for the POSIX locale
Stephen J. Turnbull
stephen at xemacs.org
Wed Mar 19 05:35:25 CET 2014
Victor Stinner writes:
> 2014-03-18 11:02 GMT+01:00 Atsuo Ishimoto <ishimoto at gembook.org>:
> > FYI: Guido was opposed to change error handler of stdin and
> > stdout years ago.
> >
> > http://bugs.python.org/issue2630#msg65493
>
> This issue proposes to use "backslashreplace" error handler for
> stdout. This error handler is very different to "surrogateescape"
> which is related to PEP 383 and used by all OS functions.
I would say, it's not different in the relevant aspect, which is
spewing presumably unreadable bytes that may cause other code reading
the output to choke. I would think backslashreplace would generally
be preferred for these use cases.
More information about the Python-Dev
mailing list