Commit a22647e
committed
Align multibyte codec aliases with actual JDK support
Map shift_jis_2004 to the JDK charset name that actually exists, x-SJIS_0213, and stop advertising EUC/ISO-2022 Japanese codec aliases that still have no backing Java charset. This keeps encodings.aliases and CharsetMapping consistent with real runtime support, restores shift_jis_2004 for callers like charset-normalizer and requests, and preserves ImportError behavior for the codecs that remain unsupported.1 parent 65482f4 commit a22647e
3 files changed
Lines changed: 8 additions & 10 deletions
File tree
- graalpython
- com.oracle.graal.python.test/src/tests
- com.oracle.graal.python/src/com/oracle/graal/python/util
- lib-python/3/encodings
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
909 | 910 | | |
910 | 911 | | |
911 | 912 | | |
912 | | - | |
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
923 | 926 | | |
924 | 927 | | |
925 | 928 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | 441 | | |
446 | 442 | | |
447 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
498 | 497 | | |
499 | 498 | | |
500 | 499 | | |
| |||
0 commit comments