[issue6832] Outputting unicode crushes when printing to file on Linux
Martin v. Löwis
report at bugs.python.org
Thu Sep 3 20:27:36 CEST 2009
Martin v. Löwis <martin at v.loewis.de> added the comment:
Using the terminal encoding for sys.stdout does not work in the general
case, as a (background) process may not *have* a controlling terminal
(such as a CGI script, a cron job, or a Windows service). That Python
recognizes the terminal encoding is primarily a convenience feature for
the interactive mode.
Exposing sys.setdefaultencoding is not implementable in a reasonable way.
----------
nosy: +loewis
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6832>
_______________________________________
More information about the Python-bugs-list
mailing list