jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / python / python39 / patches / 05-encoding-alias.patch
blob3b803b3d770b52c792a743463307612cc7ca5a0b
1 Add missing encoding aliases. It may be contributed upstream at some point,
2 but the suitability (or lack thereof) has not yet been determined.
4 --- Python-3.9.0/Lib/encodings/aliases.py
5 +++ Python-3.9.0/Lib/encodings/aliases.py
6 @@ -79,6 +79,7 @@ aliases = {
8 # cp1251 codec
9 '1251' : 'cp1251',
10 + 'ansi_1251' : 'cp1251',
11 'windows_1251' : 'cp1251',
13 # cp1252 codec
14 @@ -233,6 +234,7 @@ aliases = {
15 'u_jis' : 'euc_jp',
17 # euc_kr codec
18 + '5601' : 'euc_kr',
19 'euckr' : 'euc_kr',
20 'korean' : 'euc_kr',
21 'ksc5601' : 'euc_kr',
22 @@ -483,6 +485,7 @@ aliases = {
23 'shiftjis' : 'shift_jis',
24 'sjis' : 'shift_jis',
25 's_jis' : 'shift_jis',
26 + 'pck' : 'shift_jis',
28 # shift_jis_2004 codec
29 'shiftjis2004' : 'shift_jis_2004',
30 @@ -499,6 +502,7 @@ aliases = {
31 'tis_620_0' : 'tis_620',
32 'tis_620_2529_0' : 'tis_620',
33 'tis_620_2529_1' : 'tis_620',
34 + 'tis620.2533' : 'tis_620',
35 'iso_ir_166' : 'tis_620',
37 # utf_16 codec