This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients brett.cannon, pjenvey, vstinner
Date 2010-09-29.21:42:45
SpamBayes Score 3.1719627e-12
Marked as misclassified No
Message-id <1285796567.6.0.194798496695.issue9988@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2010-09-29 21:42:47vstinnersetrecipients: + vstinner, brett.cannon, pjenvey
2010-09-29 21:42:47vstinnersetmessageid: <1285796567.6.0.194798496695.issue9988@psf.upfronthosting.co.za>
2010-09-29 21:42:46vstinnerlinkissue9988 messages
2010-09-29 21:42:46vstinnercreate