diff options
author | Victor Stinner <vstinner@python.org> | 2021-03-17 20:46:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 20:46:53 (GMT) |
commit | 9976834f807ea63ca51bc4f89be457d734148682 (patch) | |
tree | 2ed6ca7dd002f141e1a2ade2e5dd502514ae29f0 /Python/errors.c | |
parent | 6086ae7fd4aeb4089282189673f9bd0cc33abf9b (diff) | |
download | cpython-9976834f807ea63ca51bc4f89be457d734148682.zip cpython-9976834f807ea63ca51bc4f89be457d734148682.tar.gz cpython-9976834f807ea63ca51bc4f89be457d734148682.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.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions