8145212: ISO-8859-1 isn't properly handled as 'fastEncoding' in jni_util.c
authorsimonis
Mon, 14 Dec 2015 15:32:03 +0100 (2015-12-14)
changeset 35260 2d073b8f1a16
parent 35249 fe3b7950bc4e
child 35261 0b35f1241d52
8145212: ISO-8859-1 isn't properly handled as 'fastEncoding' in jni_util.c Reviewed-by: martin, rriggs
jdk/src/java.base/share/native/libjava/jni_util.c
--- a/jdk/src/java.base/share/native/libjava/jni_util.c	Mon Dec 14 19:49:10 2015 +0000
+++ b/jdk/src/java.base/share/native/libjava/jni_util.c	Mon Dec 14 15:32:03 2015 +0100
@@ -660,7 +660,8 @@
             */
                     if ((strcmp(encname, "8859_1") == 0) ||
                         (strcmp(encname, "ISO8859-1") == 0) ||
-                        (strcmp(encname, "ISO8859_1") == 0))
+                        (strcmp(encname, "ISO8859_1") == 0) ||
+                        (strcmp(encname, "ISO-8859-1") == 0))
                         fastEncoding = FAST_8859_1;
                     else if (strcmp(encname, "ISO646-US") == 0)
                         fastEncoding = FAST_646_US;