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 Arfrever, vstinner
Date 2010-04-23.22:40:49
SpamBayes Score 0.00022443928
Marked as misclassified No
Message-id <1272062451.81.0.836509652271.issue8512@psf.upfronthosting.co.za>
In-reply-to
Content
os.execve() and os.execvpe() of Python 3.1 eats some bytes of the environment variables: see msg103459. The problem is that it counts *characters* to allocate the *byte* string buffer.

Attached patch fixes this issue. It contains a test which may stay specific to Python 3.1 because Python 3.2 have its own test for non-ASCII environment variables: test_undecodeable_env in test_subprocess (introduced by #8391).

See also #8391.
History
Date User Action Args
2010-04-23 22:40:52vstinnersetrecipients: + vstinner, Arfrever
2010-04-23 22:40:51vstinnersetmessageid: <1272062451.81.0.836509652271.issue8512@psf.upfronthosting.co.za>
2010-04-23 22:40:50vstinnerlinkissue8512 messages
2010-04-23 22:40:50vstinnercreate