Commit f2d6931
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 9cfa4df commit f2d6931
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 | |
|---|---|---|---|
| |||
3284 | 3284 | | |
3285 | 3285 | | |
3286 | 3286 | | |
3287 | | - | |
| 3287 | + | |
3288 | 3288 | | |
3289 | 3289 | | |
3290 | 3290 | | |
| |||
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 | |
|---|---|---|---|
| |||
7290 | 7290 | | |
7291 | 7291 | | |
7292 | 7292 | | |
7293 | | - | |
7294 | | - | |
7295 | | - | |
7296 | | - | |
7297 | 7293 | | |
7298 | 7294 | | |
7299 | 7295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
1090 | | - | |
| 1090 | + | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
| |||
0 commit comments