diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-03-29 19:36:47 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-29 19:36:47 (GMT) |
| commit | 3b6e61ee0812359029cac176042d9c835c60f185 (patch) | |
| tree | 1822604c7a133ca320ae917e4105a4015e0f74e7 /Python/pythonrun.c | |
| parent | e9092b221d4951609827e437178a557fd07353af (diff) | |
| download | cpython-3b6e61ee0812359029cac176042d9c835c60f185.zip cpython-3b6e61ee0812359029cac176042d9c835c60f185.tar.gz cpython-3b6e61ee0812359029cac176042d9c835c60f185.tar.bz2 | |
bpo-35883: Py_DecodeLocale() escapes invalid Unicode characters (GH-24843) (GH-24906)
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>
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
