[ruby-oci8-commit] [464] trunk/ruby-oci8: fix the mapping from Oracle NLS chacacter set to ruby encoding to use CP950 and CP951 , which are new encodings in ruby 1.9.3.

nobody at rubyforge.org nobody at rubyforge.org
Fri Nov 4 08:05:10 EDT 2011


Revision: 464
Author:   kubo
Date:     2011-11-04 08:05:10 -0400 (Fri, 04 Nov 2011)

Log Message:
-----------
fix the mapping from Oracle NLS chacacter set to ruby encoding to use CP950 and CP951, which are new encodings in ruby 1.9.3.

Modified Paths:
--------------
    trunk/ruby-oci8/ChangeLog
    trunk/ruby-oci8/lib/oci8/encoding.yml

Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog	2011-11-04 11:57:58 UTC (rev 463)
+++ trunk/ruby-oci8/ChangeLog	2011-11-04 12:05:10 UTC (rev 464)
@@ -1,4 +1,9 @@
 2011-11-04  KUBO Takehiro  <kubo at jiubao.org>
+	* lib/oci8/encoding.yml: fix the mapping from Oracle NLS chacacter set
+	    to ruby encoding to use CP950 and CP951, which are new encodings
+	    in ruby 1.9.3.
+
+2011-11-04  KUBO Takehiro  <kubo at jiubao.org>
 	* ext/oci8/ocinumber.c: add a workaround to avoid a gcc internal
 	    compiler error when using ruby 1.9.2-p290 on ubuntu 11.10 (64bit).
 	    (reported by Bob Saveland.)

Modified: trunk/ruby-oci8/lib/oci8/encoding.yml
===================================================================
--- trunk/ruby-oci8/lib/oci8/encoding.yml	2011-11-04 11:57:58 UTC (rev 463)
+++ trunk/ruby-oci8/lib/oci8/encoding.yml	2011-11-04 12:05:10 UTC (rev 464)
@@ -40,10 +40,10 @@
 # MS Windows Code Page 950 with Hong Kong Supplementary Character
 # Set HKSCS-2001 (character set conversion to and from Unicode is
 # based on Unicode 3.0)
-ZHT16HKSCS:        [Big5-HKSCS, Big5]
+ZHT16HKSCS:        [CP951, Big5-HKSCS, Big5]
 
 # MS Windows Code Page 950 Traditional Chinese
-ZHT16MSWIN950:     Big5
+ZHT16MSWIN950:     [CP950, Big5]
 
 # EUC 32-bit Traditional Chinese
 ZHT32EUC:          EUC-TW       # Who use this?
@@ -166,7 +166,7 @@
 # MS Windows Code Page 950 with Hong Kong Supplementary Character
 # Set HKSCS-2001 (character set conversion to and from Unicode is
 # based on Unicode 3.1)
-ZHT16HKSCS31:      [Big5-HKSCS, Big5]
+ZHT16HKSCS31:      [CP951, Big5-HKSCS, Big5]
 
 # SOPS 32-bit Traditional Chinese
 ZHT32SOPS:         nil          # FIXME




More information about the ruby-oci8-commit mailing list