jdk/src/solaris/native/java/lang/java_props_md.c
changeset 5167 dbd299f8fdae
parent 2 90ce3da70b43
child 5168 41e46b5d9b15
--- a/jdk/src/solaris/native/java/lang/java_props_md.c	Mon Mar 29 13:27:25 2010 +0800
+++ b/jdk/src/solaris/native/java/lang/java_props_md.c	Tue Mar 30 19:10:47 2010 -0700
@@ -337,22 +337,24 @@
                 std_encoding = "EUC-JP-LINUX";
             }
 #else
-            /* For Solaris use customized vendor defined character
-             * customized EUC-JP converter
-             */
             if (strcmp(p,"eucJP") == 0) {
+                /* For Solaris use customized vendor defined character
+                 * customized EUC-JP converter
+                 */
                 std_encoding = "eucJP-open";
-            }
-#endif
-#ifndef __linux__
-            /*
-             * Remap the encoding string to Big5_Solaris which augments
-             * the default converter for Solaris Big5 locales to include
-             * seven additional ideographic characters beyond those included
-             * in the Java "Big5" converter.
-             */
-            if (strcmp(p, "Big5") == 0) {
-                    std_encoding = "Big5_Solaris";
+            } else if (strcmp(p, "Big5") == 0 || strcmp(p, "BIG5") == 0) {
+                /*
+                 * Remap the encoding string to Big5_Solaris which augments
+                 * the default converter for Solaris Big5 locales to include
+                 * seven additional ideographic characters beyond those included
+                 * in the Java "Big5" converter.
+                 */
+                std_encoding = "Big5_Solaris";
+            } else if (strcmp(p, "Big5-HKSCS") == 0) {
+                /*
+                 * Solaris uses HKSCS2001
+                 */
+                std_encoding = "Big5-HKSCS-2001";
             }
 #endif
             sprops.encoding = std_encoding;