Commit 57c8e3e
gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-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.
(cherry picked from commit ce1b747)
Co-authored-by: Victor Stinner <[email protected]>
1 parent e4e8c5a commit 57c8e3e
File tree
4 files changed
+5
-6
lines changed- Lib/test
- Misc/NEWS.d/next/Core_and_Builtins
- Objects
- Python
4 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3293 | 3293 | | |
3294 | 3294 | | |
3295 | 3295 | | |
3296 | | - | |
| 3296 | + | |
3297 | 3297 | | |
3298 | 3298 | | |
3299 | 3299 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7713 | 7713 | | |
7714 | 7714 | | |
7715 | 7715 | | |
7716 | | - | |
7717 | | - | |
7718 | | - | |
7719 | | - | |
7720 | 7716 | | |
7721 | 7717 | | |
7722 | 7718 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | | - | |
| 1207 | + | |
1208 | 1208 | | |
1209 | 1209 | | |
1210 | 1210 | | |
| |||
0 commit comments