[issue19977] Use "surrogateescape" error handler for sys.stdin and sys.stdout on UNIX for the C locale
Nick Coghlan
report at bugs.python.org
Sun Apr 27 20:13:18 CEST 2014
Nick Coghlan added the comment:
Additional environments where the system misreports the encoding to use (courtesy of Armin Ronacher & Graham Dumpleton on Twitter): upstart, Salt, mod_wsgi.
Note that for more complex applications (e.g. integrated web UIs, socket servers, sending email), round tripping to the standard streams won't be enough - what we really need is a better "source of truth" as to the real system encoding when POSIX compliant systems provide incorrect configuration data to the interpreter.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19977>
_______________________________________
More information about the Python-bugs-list
mailing list