8210345: The Japanese message of FileNotFoundException garbled
authorsherman
Fri, 07 Sep 2018 10:17:49 -0700
changeset 51671 9f6903174bad
parent 51670 2dddc9394b49
child 51672 b613bf6a10b1
8210345: The Japanese message of FileNotFoundException garbled Reviewed-by: alanb
src/java.base/share/native/libjava/io_util.c
--- 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,