[前][次][番号順一覧][スレッド一覧]

ruby-changes:9970

From: nobu <ko1@a...>
Date: Thu, 15 Jan 2009 00:06:39 +0900 (JST)
Subject: [ruby-changes:9970] Ruby:r21512 (trunk): * enc/trans/gb18030.trans: get rid of a 1.9 feature for cross

nobu	2009-01-15 00:06:19 +0900 (Thu, 15 Jan 2009)

  New Revision: 21512

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21512

  Log:
    * enc/trans/gb18030.trans: get rid of a 1.9 feature for cross
      compile.  [ruby-core:21345]

  Modified files:
    trunk/ChangeLog
    trunk/enc/trans/gb18030.trans
    trunk/tool/transcode-tblgen.rb
    trunk/version.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21511)
+++ ChangeLog	(revision 21512)
@@ -1,3 +1,8 @@
+Thu Jan 15 00:06:12 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* enc/trans/gb18030.trans: get rid of a 1.9 feature for cross
+	  compile.  [ruby-core:21345]
+
 Wed Jan 14 23:57:28 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* encoding.c (rb_locale_charmap): fallback to codepage if no
Index: enc/trans/gb18030.trans
===================================================================
--- enc/trans/gb18030.trans	(revision 21511)
+++ enc/trans/gb18030.trans	(revision 21512)
@@ -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 @@
 {
     rb_register_transcoder(&rb_from_GB18030);
     rb_register_transcoder(&rb_to_GB18030);
-
 }
Index: version.h
===================================================================
--- version.h	(revision 21511)
+++ version.h	(revision 21512)
@@ -1,5 +1,5 @@
 #define RUBY_VERSION "1.9.1"
-#define RUBY_RELEASE_DATE "2009-01-14"
+#define RUBY_RELEASE_DATE "2009-01-15"
 #define RUBY_PATCHLEVEL 5000
 #define RUBY_BRANCH_NAME "trunk"
 
@@ -8,7 +8,7 @@
 #define RUBY_VERSION_TEENY 1
 #define RUBY_RELEASE_YEAR 2009
 #define RUBY_RELEASE_MONTH 1
-#define RUBY_RELEASE_DAY 14
+#define RUBY_RELEASE_DAY 15
 
 #ifdef RUBY_EXTERN
 RUBY_EXTERN const char ruby_version[];
Index: tool/transcode-tblgen.rb
===================================================================
--- tool/transcode-tblgen.rb	(revision 21511)
+++ tool/transcode-tblgen.rb	(revision 21512)
@@ -607,7 +607,7 @@
 TRANSCODERS = []
 TRANSCODE_GENERATED_TRANSCODER_CODE = ''
 
-def transcode_tbl_only (from, to, map)
+def transcode_tbl_only(from, to, map)
   if VERBOSE_MODE
     if from.empty? || to.empty?
       STDERR.puts "converter for #{from.empty? ? to : from}"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]