changeset 35260:2d073b8f1a16

8145212: ISO-8859-1 isn't properly handled as 'fastEncoding' in jni_util.c Reviewed-by: martin, rriggs
author simonis
date Mon, 14 Dec 2015 15:32:03 +0100
parents fe3b7950bc4e
children 0b35f1241d52
files jdk/src/java.base/share/native/libjava/jni_util.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;