Author vstinner
Recipients loewis, vstinner
Date 2008-10-04.11:31:27
SpamBayes Score 2.38584e-07
Marked as misclassified No
Message-id <1223119888.23.0.234638218956.issue4035@psf.upfronthosting.co.za>
In-reply-to
Content
The fix can be changed to be specific to POSIX system:
+    if name == 'posix' \
+    and isinstance(file, bytes):
+        encoding = sys.getfilesystemencoding()
+        PATH = (bytes(dir, encoding) for dir in PATH)

My example was incorrect. The good example is:
   python -c "import os; os.execvp('pwd', ['pwd'])
History
Date User Action Args
2008-10-04 11:31:28vstinnersetrecipients: + vstinner, loewis
2008-10-04 11:31:28vstinnersetmessageid: <1223119888.23.0.234638218956.issue4035@psf.upfronthosting.co.za>
2008-10-04 11:31:27vstinnerlinkissue4035 messages
2008-10-04 11:31:27vstinnercreate