8145212: ISO-8859-1 isn't properly handled as 'fastEncoding' in jni_util.c
Reviewed-by: martin, rriggs
--- 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;