mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
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:
parent
766d880a2f
commit
f3e93a0268
4 changed files with 26 additions and 1 deletions
|
@ -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__)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue