]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (#137415)
authorVictor Stinner <vstinner@python.org>
Wed, 6 Aug 2025 12:35:27 +0000 (14:35 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Aug 2025 12:35:27 +0000 (14:35 +0200)
commitce1b747ff68754635b7b12870dfc527184ee3b39
tree0d47d6800adb9129ffbbb34399f85830bc976ced
parentc17f378c0efb67afb245fe2ef9e7dd2272541ff9
gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (#137415)

Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
Lib/test/test_codecs.py
Misc/NEWS.d/next/Core_and_Builtins/2025-08-05-17-22-24.gh-issue-58124.q1__53.rst [new file with mode: 0644]
Objects/unicodeobject.c
Python/codecs.c