Author vstinner
Recipients vstinner
Date 2010-04-14.00:01:33
SpamBayes Score 1.19985e-06
Marked as misclassified No
Message-id <>
It would be nice to support the PEP 383 (surrogateescape) for environment variables in os.execvpe(). Attached patch uses PyUnicode_AsEncodedString(val, Py_FileSystemDefaultEncoding, "surrogateescape") to encode an environment variable value.

I'm not sure that PyUnicode_AsEncodedString(val, Py_FileSystemDefaultEncoding, "surrogateescape") does always return a PyBytes object.

I not patched environment keys, but it might be useful.
Date User Action Args
2010-04-14 00:01:39vstinnersetrecipients: + vstinner
2010-04-14 00:01:38vstinnersetmessageid: <>
2010-04-14 00:01:36vstinnerlinkissue8391 messages
2010-04-14 00:01:35vstinnercreate