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 pjenvey, vstinner
Date 2010-09-29.23:45:56
SpamBayes Score 1.3359869e-12
Marked as misclassified No
Message-id <1285803959.95.0.943974192019.issue9992@psf.upfronthosting.co.za>
In-reply-to
Content
[cmdline_encoding-2.patch] Patch to use locale encoding to decode and encode command line arguments. Remarks about the patch:

 - failing to get the locale encoding (very unlikely) is a fatal error
 - TODO: in initfsencoding(), Py_FileSystemDefaultEncoding should reuse Py_CommandLineEncoding instead of calling get_codeset() again
 - subprocess encodes arguments to the command line encoding for _posixsubprocess and Python implementations
 - _posixsubprocess doesn't support unicode command line arguments anymore

The patch is an updated version of the patch attached to #8775.

Using the patch, locale_fs_encoding.py test script pass.
History
Date User Action Args
2010-09-29 23:46:00vstinnersetrecipients: + vstinner, pjenvey
2010-09-29 23:45:59vstinnersetmessageid: <1285803959.95.0.943974192019.issue9992@psf.upfronthosting.co.za>
2010-09-29 23:45:58vstinnerlinkissue9992 messages
2010-09-29 23:45:57vstinnercreate