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

ruby-changes:6794

From: naruse <ko1@a...>
Date: Fri, 1 Aug 2008 23:17:47 +0900 (JST)
Subject: [ruby-changes:6794] Ruby:r18310 (trunk): * enc/trans/japanese.c: add support for CP51932,

naruse	2008-08-01 23:17:21 +0900 (Fri, 01 Aug 2008)

  New Revision: 18310

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

  Log:
    * enc/trans/japanese.c: add support for CP51932,

  Modified files:
    trunk/ChangeLog
    trunk/enc/trans/japanese.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 18309)
+++ ChangeLog	(revision 18310)
@@ -1,3 +1,7 @@
+Fri Aug  1 23:16:03 2008  NARUSE, Yui  <naruse@r...>
+
+	* enc/trans/japanese.c: add support for CP51932,
+
 Fri Aug  1 22:59:40 2008  NARUSE, Yui  <naruse@r...>
 
 	* enc/trans/japanese.c: add U+FF0C,
Index: enc/trans/japanese.c
===================================================================
--- enc/trans/japanese.c	(revision 18309)
+++ enc/trans/japanese.c	(revision 18310)
@@ -18163,6 +18163,11 @@
     "EUC-JP", "UTF-8", &from_EUC_JP, 3, 0,
     NULL, NULL,
 };
+static const rb_transcoder
+rb_from_CP51932 = {
+    "CP51932", "UTF-8", &from_EUC_JP, 3, 0,
+    NULL, NULL,
+};
 
 static const struct byte_lookup* const
 to_EUC_JP_C2_infos[14] = {
@@ -23679,6 +23684,11 @@
     "UTF-8", "EUC-JP", &to_EUC_JP, 2, 1,
     NULL, NULL,
 };
+static const rb_transcoder
+rb_to_CP51932 = {
+    "UTF-8", "CP51932", &to_EUC_JP, 2, 1,
+    NULL, NULL,
+};
 
 #define ISO_2022_ENCODING(escseq, byte) ((escseq<<8)|byte)
 enum ISO_2022_ESCSEQ {
@@ -23907,9 +23917,11 @@
     rb_register_transcoder(&rb_from_SHIFT_JIS);
     rb_register_transcoder(&rb_from_Windows_31J);
     rb_register_transcoder(&rb_from_EUC_JP);
+    rb_register_transcoder(&rb_from_CP51932);
     rb_register_transcoder(&rb_to_SHIFT_JIS);
     rb_register_transcoder(&rb_to_Windows_31J);
     rb_register_transcoder(&rb_to_EUC_JP);
+    rb_register_transcoder(&rb_to_CP51932);
     rb_register_transcoder(&rb_from_ISO_2022_JP);
     rb_register_transcoder(&rb_to_ISO_2022_JP);
 }

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

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