Marc-Andre Lemburg mal@lemburg.com: · python/cpython@4fd73f0 (original) (raw)

Original file line number Diff line number Diff line change
@@ -18,6 +18,8 @@
18 18 'utf': 'utf_8',
19 19 'utf8': 'utf_8',
20 20 'u8': 'utf_8',
21 +'utf8@ucs2': 'utf_8',
22 +'utf8@ucs4': 'utf_8',
21 23
22 24 # UTF-16
23 25 'utf16': 'utf_16',
@@ -31,6 +33,8 @@
31 33 'us_ascii': 'ascii',
32 34
33 35 # ISO
36 +'8859': 'latin_1',
37 +'iso8859': 'latin_1',
34 38 'iso8859_1': 'latin_1',
35 39 'iso_8859_1': 'latin_1',
36 40 'iso_8859_10': 'iso8859_10',
@@ -47,6 +51,7 @@
47 51 'iso_8859_9': 'iso8859_9',
48 52
49 53 # Mac
54 +'maclatin2': 'mac_latin2',
50 55 'maccentraleurope': 'mac_latin2',
51 56 'maccyrillic': 'mac_cyrillic',
52 57 'macgreek': 'mac_greek',
@@ -57,4 +62,21 @@
57 62 # MBCS
58 63 'dbcs': 'mbcs',
59 64
65 +# Code pages
66 +'437': 'cp437',
67 +
68 +# CJK
69 +#
70 +# The codecs for these encodings are not distributed with the
71 +# Python core, but are included here for reference, since the
72 +# locale module relies on having these aliases available.
73 +#
74 +'jis_7': 'jis_7',
75 +'iso_2022_jp': 'jis_7',
76 +'ujis': 'euc_jp',
77 +'ajec': 'euc_jp',
78 +'eucjp': 'euc_jp',
79 +'tis260': 'tactis',
80 +'sjis': 'shift_jis',
81 +
60 82 }