[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

STINNER Victor report at bugs.python.org
Wed Sep 29 23:42:47 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> OK, so who's messing up: subprocess or Py_main()?

Well, this is the real question :-)

locale encoding is used to decode command line arguments (sys.argv), filesystem encoding is used to decode environment variables and to encode subprocess arguments and environment variables.

It means that we have something funny if a Python process creates a Python subprocess: child process arguments are encoded using the filesystem encoding, whereas the arguments are decoded using the locale encoding. If both encodings are different (eg. if PYTHONFSENCODING is used by at least the parent process), we have the bug similar to #4388. See also issue #8775.

----------

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


More information about the Python-bugs-list mailing list