summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codecmaps_cn.py
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2007-08-04 04:10:18 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2007-08-04 04:10:18 (GMT)
commitf3e93a02688849da484a6677320a84c913461fd4 (patch)
tree939499b8cef1710a91d1255b2333673aa04f9c3f /Lib/test/test_codecmaps_cn.py
parent766d880a2fd0bcb4fca187db255763506e10f96b (diff)
downloadcpython-f3e93a02688849da484a6677320a84c913461fd4.zip
cpython-f3e93a02688849da484a6677320a84c913461fd4.tar.gz
cpython-f3e93a02688849da484a6677320a84c913461fd4.tar.bz2
Fix gb18030 codec's bug that doesn't map two-byte characters on
GB18030 extension in encoding. (bug reported by Bjorn Stabell)
Diffstat (limited to 'Lib/test/test_codecmaps_cn.py')
-rw-r--r--Lib/test/test_codecmaps_cn.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_codecmaps_cn.py b/Lib/test/test_codecmaps_cn.py
index 75541ac..344fc56 100644
--- a/Lib/test/test_codecmaps_cn.py
+++ b/Lib/test/test_codecmaps_cn.py
@@ -19,6 +19,13 @@ class TestGBKMap(test_multibytecodec_support.TestBase_Mapping,
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/' \
'MICSFT/WINDOWS/CP936.TXT'
+class TestGB18030Map(test_multibytecodec_support.TestBase_Mapping,
+ unittest.TestCase):
+ encoding = 'gb18030'
+ mapfileurl = 'http://source.icu-project.org/repos/icu/data/' \
+ 'trunk/charset/data/xml/gb-18030-2000.xml'
+
+
def test_main():
test_support.run_unittest(__name__)