STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9988>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to