summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-03-17 20:46:53 (GMT)
committerGitHub <noreply@github.com>2021-03-17 20:46:53 (GMT)
commit9976834f807ea63ca51bc4f89be457d734148682 (patch)
tree2ed6ca7dd002f141e1a2ade2e5dd502514ae29f0 /Misc
parent6086ae7fd4aeb4089282189673f9bd0cc33abf9b (diff)
downloadcpython-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 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2021-03-13-13-57-21.bpo-35883.UyGpdG.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-03-13-13-57-21.bpo-35883.UyGpdG.rst b/Misc/NEWS.d/next/Core and Builtins/2021-03-13-13-57-21.bpo-35883.UyGpdG.rst
new file mode 100644
index 0000000..4674242
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2021-03-13-13-57-21.bpo-35883.UyGpdG.rst
@@ -0,0 +1,4 @@
+Python no longer fails at startup with a fatal error if a command line
+argument contains an invalid Unicode character. The
+:c:func:`Py_DecodeLocale` function now escapes byte sequences which would be
+decoded as Unicode characters outside the [U+0000; U+10ffff] range.