changeset 51671:9f6903174bad

8210345: The Japanese message of FileNotFoundException garbled Reviewed-by: alanb
author sherman
date Fri, 07 Sep 2018 10:17:49 -0700
parents 2dddc9394b49
children b613bf6a10b1
files src/java.base/share/native/libjava/io_util.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/native/libjava/io_util.c	Fri Sep 07 15:56:21 2018 +0100
+++ b/src/java.base/share/native/libjava/io_util.c	Fri Sep 07 10:17:49 2018 -0700
@@ -211,11 +211,7 @@
 
     n = getLastErrorString(buf, sizeof(buf));
     if (n > 0) {
-#ifdef WIN32
-        why = (*env)->NewStringUTF(env, buf);
-#else
         why = JNU_NewStringPlatform(env, buf);
-#endif
         CHECK_NULL(why);
     }
     x = JNU_NewObjectByName(env,