diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-03 11:29:33 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-03 11:29:33 +0000 |
commit | 9998481d4efaf86dde652617ed3b2777924c3373 (patch) | |
tree | 5a57bb69e829bd106462105dd3b638a618d16e35 /enc | |
parent | 342ed0ab03b951916cf77058f2e09c0e887cfdc2 (diff) | |
download | ruby-9998481d4efaf86dde652617ed3b2777924c3373.tar.gz |
* enc/trans/gb18030-tbl.rb: Fix omission of C1 region in code table
(from Tatsuya Mizuno)
* test/ruby/test_transcode.rb: Added test for converting full range of
Unicode codepoints from/to GB18030 (from Tatsuya Mizuno)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r-- | enc/trans/gb18030-tbl.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/enc/trans/gb18030-tbl.rb b/enc/trans/gb18030-tbl.rb index 17a01d8885..e1c29deeb1 100644 --- a/enc/trans/gb18030-tbl.rb +++ b/enc/trans/gb18030-tbl.rb @@ -1,4 +1,36 @@ GB18030_TO_UCS_TBL = [ + ["81308130",0x80], + ["81308131",0x81], + ["81308132",0x82], + ["81308133",0x83], + ["81308134",0x84], + ["81308135",0x85], + ["81308136",0x86], + ["81308137",0x87], + ["81308138",0x88], + ["81308139",0x89], + ["81308230",0x8A], + ["81308231",0x8B], + ["81308232",0x8C], + ["81308233",0x8D], + ["81308234",0x8E], + ["81308235",0x8F], + ["81308236",0x90], + ["81308237",0x91], + ["81308238",0x92], + ["81308239",0x93], + ["81308330",0x94], + ["81308331",0x95], + ["81308332",0x96], + ["81308333",0x97], + ["81308334",0x98], + ["81308335",0x99], + ["81308336",0x9A], + ["81308337",0x9B], + ["81308338",0x9C], + ["81308339",0x9D], + ["81308430",0x9E], + ["81308431",0x9F], ["81308432",0xA0], ["81308433",0xA1], ["81308434",0xA2], |