summaryrefslogtreecommitdiffstats
path: root/Lib/encodings
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2008-08-23 08:03:03 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2008-08-23 08:03:03 (GMT)
commit50d1f7935d7155fc4cf243411b5a2f1a77cf06dd (patch)
tree0a016f8e52ab8666f33d29220f475f3b500a68d7 /Lib/encodings
parent20443f30436cd93b491286a596063a9ede832467 (diff)
downloadcpython-50d1f7935d7155fc4cf243411b5a2f1a77cf06dd.zip
cpython-50d1f7935d7155fc4cf243411b5a2f1a77cf06dd.tar.gz
cpython-50d1f7935d7155fc4cf243411b5a2f1a77cf06dd.tar.bz2
#1276: Add temporary encoding aliases for non-supported Mac CJK
encodings that are detected as system defaults in MacOS with CJK locales. Will be replaced by properly-implemented codecs in 3.1.
Diffstat (limited to 'Lib/encodings')
-rw-r--r--Lib/encodings/aliases.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py
index 8e82806..4c35588 100644
--- a/Lib/encodings/aliases.py
+++ b/Lib/encodings/aliases.py
@@ -519,4 +519,9 @@ aliases = {
#'zip' : 'zlib_codec',
#'zlib' : 'zlib_codec',
+ # temporary mac CJK aliases, will be replaced by proper codecs in 3.1
+ 'x_mac_japanese' : 'shift_jis',
+ 'x_mac_korean' : 'euc_kr',
+ 'x_mac_simp_chinese' : 'gb2312',
+ 'x_mac_trad_chinese' : 'big5',
}