summaryrefslogtreecommitdiff
path: root/enc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-14 15:06:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-14 15:06:19 +0000
commite24346d6c6b4bdf91e1e32bfd53a328086b8d772 (patch)
tree14b9d316039775b8c3d2a1c9cc92a1d0d3237019 /enc
parent22e711c4bf382422f861d598ff6dd188d0482951 (diff)
* enc/trans/gb18030.trans: get rid of a 1.9 feature for cross
compile. [ruby-core:21345] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r--enc/trans/gb18030.trans9
1 files changed, 4 insertions, 5 deletions
diff --git a/enc/trans/gb18030.trans b/enc/trans/gb18030.trans
index a32ad2e478..700522c9f0 100644
--- a/enc/trans/gb18030.trans
+++ b/enc/trans/gb18030.trans
@@ -3,15 +3,15 @@
<%
require "gb18030-tbl"
- transcode_tbl_only "GB18030", "UTF-8", [["{00-7f}", :nomap],
- *GB18030_TO_UCS_TBL,
+ transcode_tbl_only "GB18030", "UTF-8", [["{00-7f}", :nomap]] +
+ GB18030_TO_UCS_TBL + [
["{90-e2}{30-39}{81-fe}{30-39}", :func_so],
["e3{30-31}{81-fe}{30-39}", :func_so],
["e332{81-99}{30-39}", :func_so],
["e3329a{30-35}", :func_so], # "E3329A35" is U+10FFFF
]
- transcode_tbl_only "UTF-8", "GB18030", [["{00-7f}", :nomap],
- *GB18030_TO_UCS_TBL.map {|a,b| [b,a] },
+ transcode_tbl_only "UTF-8", "GB18030", [["{00-7f}", :nomap]] +
+ GB18030_TO_UCS_TBL.map {|a,b| [b,a] } + [
["f0{90-bf}{80-bf}{80-bf}", :func_so],
["{f1-f3}{80-bf}{80-bf}{80-bf}", :func_so],
["f4{80-8f}{80-bf}{80-bf}", :func_so]
@@ -81,5 +81,4 @@ Init_gb18030(void)
{
rb_register_transcoder(&rb_from_GB18030);
rb_register_transcoder(&rb_to_GB18030);
-
}