author | John Beck <John.Beck@Oracle.COM> |
Mon, 06 Oct 2014 13:15:36 -0700 | |
branch | s11u2-sru |
changeset 3379 | e99da14b537a |
parent 458 | 2edc011b559e |
permissions | -rw-r--r-- |
3379
e99da14b537a
PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
458
diff
changeset
|
1 |
Add missing encoding aliases. It may be contributed upstream at some point, |
e99da14b537a
PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
458
diff
changeset
|
2 |
but the suitability (or lack thereof) has not yet been determined. |
e99da14b537a
PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
458
diff
changeset
|
3 |
|
e99da14b537a
PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
458
diff
changeset
|
4 |
--- Python-2.7.6/Lib/encodings/aliases.py.~1~ 2013-11-09 23:36:40.000000000 -0800 |
e99da14b537a
PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
458
diff
changeset
|
5 |
+++ Python-2.7.6/Lib/encodings/aliases.py 2014-05-14 13:12:20.046910463 -0700 |
458 | 6 |
@@ -73,6 +73,7 @@ |
7 |
||
8 |
# cp1251 codec |
|
9 |
'1251' : 'cp1251', |
|
10 |
+ 'ansi_1251' : 'cp1251', |
|
11 |
'windows_1251' : 'cp1251', |
|
12 |
||
13 |
# cp1252 codec |
|
3379
e99da14b537a
PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
458
diff
changeset
|
14 |
@@ -222,6 +223,7 @@ |
458 | 15 |
'u_jis' : 'euc_jp', |
16 |
||
17 |
# euc_kr codec |
|
18 |
+ '5601' : 'euc_kr', |
|
19 |
'euckr' : 'euc_kr', |
|
20 |
'korean' : 'euc_kr', |
|
21 |
'ksc5601' : 'euc_kr', |
|
3379
e99da14b537a
PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
458
diff
changeset
|
22 |
@@ -462,6 +464,7 @@ |
458 | 23 |
'shiftjis' : 'shift_jis', |
24 |
'sjis' : 'shift_jis', |
|
25 |
's_jis' : 'shift_jis', |
|
26 |
+ 'pck' : 'shift_jis', |
|
27 |
||
28 |
# shift_jis_2004 codec |
|
29 |
'shiftjis2004' : 'shift_jis_2004', |
|
3379
e99da14b537a
PSARC 2014/183 Python 2.7.6
John Beck <John.Beck@Oracle.COM>
parents:
458
diff
changeset
|
30 |
@@ -481,6 +484,7 @@ |
458 | 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', |
|
36 |
||
37 |
# utf_16 codec |