[Python-checkins] CVS: python/dist/src/Lib/encodings aliases.py,1.3,1.4
Marc-Andre Lemburg
python-dev@python.org
Wed, 7 Jun 2000 02:12:33 -0700
Update of /cvsroot/python/python/dist/src/Lib/encodings
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17691/Lib/encodings
Modified Files:
aliases.py
Log Message:
Marc-Andre Lemburg <mal@lemburg.com>:
Added some more codec aliases. Some of them are needed by the
new locale.py encoding support.
Index: aliases.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/encodings/aliases.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** aliases.py 2000/04/05 20:11:18 1.3
--- aliases.py 2000/06/07 09:12:30 1.4
***************
*** 19,22 ****
--- 19,24 ----
'utf8': 'utf_8',
'u8': 'utf_8',
+ 'utf8@ucs2': 'utf_8',
+ 'utf8@ucs4': 'utf_8',
# UTF-16
***************
*** 32,35 ****
--- 34,39 ----
# ISO
+ '8859': 'latin_1',
+ 'iso8859': 'latin_1',
'iso8859_1': 'latin_1',
'iso_8859_1': 'latin_1',
***************
*** 48,51 ****
--- 52,56 ----
# Mac
+ 'maclatin2': 'mac_latin2',
'maccentraleurope': 'mac_latin2',
'maccyrillic': 'mac_cyrillic',
***************
*** 57,60 ****
--- 62,82 ----
# 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',
}