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 loewis, vstinner
Date 2008-10-04.11:31:27
SpamBayes Score 2.3858402e-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