Fix gb18030 codec's bug that doesn't map two-byte characters on

GB18030 extension in encoding. (bug reported by Bjorn Stabell)
This commit is contained in:
Hye-Shik Chang 2007-08-04 04:10:18 +00:00
parent 766d880a2f
commit f3e93a0268
4 changed files with 26 additions and 1 deletions

View file

@ -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__)