[issue19846] print() and write() are relying on sys.getfilesystemencoding() instead of sys.getdefaultencoding()

STINNER Victor report at bugs.python.org
Sun Dec 8 11:49:59 CET 2013


STINNER Victor added the comment:

Antoine Pitrou added the comment:
> > Python uses the fact that the filesystem encoding is the locale
> > encoding in various places.
> The patch doesn't change that.

Nick Coghlan added the comment:
> Note that the *only* change Antoine's patch makes is that:
> - *if* the locale encoding is ASCII (or an alias for ASCII)
> - *then* Python sets the filesystem encoding to UTF-8 instead

If the locale encoding is ASCII, filesystem encoding (UTF-8) is
different than the locale encoding.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19846>
_______________________________________


More information about the Python-bugs-list mailing list