changeset 13490:20cf50b4e385

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 7205ee062a14
children 4c19b446250c
files src/java.base/share/native/libjava/jni_util.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/native/libjava/jni_util.c	Mon Dec 14 19:49:10 2015 +0000
+++ b/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;