[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. |