issue9992.patch:
- Remove PYTHONFSENCODING environment variable
- Mac OS X: Use utf-8 to decode command line arguments
- Fix issue #9992 (this issue): attached test, locale_fs_encoding.py, pass
- Fix issue #9988
- Fix issue #10014
- Fix issue #10039
$ diffstat issue9992.patch
Doc/using/cmdline.rst | 12 ------------
Doc/whatsnew/3.2.rst | 6 ------
Lib/test/test_os.py | 30 ------------------------------
Lib/test/test_subprocess.py | 4 ----
Lib/test/test_sys.py | 29 -----------------------------
Modules/main.c | 3 ---
Modules/python.c | 10 +++++++++-
Python/pythonrun.c | 22 ++++++----------------
8 files changed, 15 insertions(+), 101 deletions(-)
I like such patch: it removes more code than it adds, but it fixes 4 different issues!
I didn't tested the patch specific to OSX (use utf8 to decode command line arguments). |