-
- Downloads
bpo-35883: Py_DecodeLocale() escapes invalid Unicode characters (GH-24843)
Python no longer fails at startup with a fatal error if a command line argument contains an invalid Unicode character. The Py_DecodeLocale() function now escapes byte sequences which would be decoded as Unicode characters outside the [U+0000; U+10ffff] range. Use MAX_UNICODE constant in unicodeobject.c.
Showing
- Lib/test/test_cmd_line.py 60 additions, 26 deletionsLib/test/test_cmd_line.py
- Misc/NEWS.d/next/Core and Builtins/2021-03-13-13-57-21.bpo-35883.UyGpdG.rst 4 additions, 0 deletions...ore and Builtins/2021-03-13-13-57-21.bpo-35883.UyGpdG.rst
- Objects/unicodeobject.c 5 additions, 4 deletionsObjects/unicodeobject.c
- Python/fileutils.c 79 additions, 39 deletionsPython/fileutils.c
Loading
Please register or sign in to comment