STINNER Victor <victor.stin...@haypocalc.com> added the comment: [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. ---------- keywords: +patch Added file: http://bugs.python.org/file19064/cmdline_encoding-2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9992> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com