summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-03-17 21:11:14 (GMT)
committerGitHub <noreply@github.com>2021-03-17 21:11:14 (GMT)
commitaa967ec4d4c2fc844f8f16b339140b050ae4d5e2 (patch)
treeab5f15e947070acb95684e29c47b7a3638df27b4 /Python/pythonrun.c
parentdb733761060be92915b5f5cba209dcaada88f94e (diff)
downloadcpython-aa967ec4d4c2fc844f8f16b339140b050ae4d5e2.zip
cpython-aa967ec4d4c2fc844f8f16b339140b050ae4d5e2.tar.gz
cpython-aa967ec4d4c2fc844f8f16b339140b050ae4d5e2.tar.bz2
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. (cherry picked from commit 9976834f807ea63ca51bc4f89be457d734148682) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions