diff options
author | Marc-André Lemburg <mal@egenix.com> | 2000-06-07 09:12:30 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2000-06-07 09:12:30 (GMT) |
commit | 4fd73f0465ba11c22f0986d04cf91b387ed22c47 (patch) | |
tree | e2e4cdbadcb97e4cecb33bfedea4479fefafd866 /Lib/encodings/aliases.py | |
parent | 990bbe90d5537065d80dac3a1a4d44ee19ad8bdd (diff) | |
download | cpython-4fd73f0465ba11c22f0986d04cf91b387ed22c47.zip cpython-4fd73f0465ba11c22f0986d04cf91b387ed22c47.tar.gz cpython-4fd73f0465ba11c22f0986d04cf91b387ed22c47.tar.bz2 |
Marc-Andre Lemburg <mal@lemburg.com>:
Added some more codec aliases. Some of them are needed by the
new locale.py encoding support.
Diffstat (limited to 'Lib/encodings/aliases.py')
-rw-r--r-- | Lib/encodings/aliases.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py index 1214cf9..b9bfd97 100644 --- a/Lib/encodings/aliases.py +++ b/Lib/encodings/aliases.py @@ -18,6 +18,8 @@ aliases = { 'utf': 'utf_8', 'utf8': 'utf_8', 'u8': 'utf_8', + 'utf8@ucs2': 'utf_8', + 'utf8@ucs4': 'utf_8', # UTF-16 'utf16': 'utf_16', @@ -31,6 +33,8 @@ aliases = { 'us_ascii': 'ascii', # ISO + '8859': 'latin_1', + 'iso8859': 'latin_1', 'iso8859_1': 'latin_1', 'iso_8859_1': 'latin_1', 'iso_8859_10': 'iso8859_10', @@ -47,6 +51,7 @@ aliases = { 'iso_8859_9': 'iso8859_9', # Mac + 'maclatin2': 'mac_latin2', 'maccentraleurope': 'mac_latin2', 'maccyrillic': 'mac_cyrillic', 'macgreek': 'mac_greek', @@ -57,4 +62,21 @@ aliases = { # MBCS 'dbcs': 'mbcs', + # Code pages + '437': 'cp437', + + # CJK + # + # The codecs for these encodings are not distributed with the + # Python core, but are included here for reference, since the + # locale module relies on having these aliases available. + # + 'jis_7': 'jis_7', + 'iso_2022_jp': 'jis_7', + 'ujis': 'euc_jp', + 'ajec': 'euc_jp', + 'eucjp': 'euc_jp', + 'tis260': 'tactis', + 'sjis': 'shift_jis', + } |