There's lots of native code in the JDK that does something like:
jio_snprintf(msg, 1024,
"CreateProcess: %s error=%d", cmd, GetLastError());
JNU_ThrowByName(env, "java/io/IOException", msg);
(This is actually bug 5023243)
All such uses of GetLastError and filenames
need to be checked for proper encoding in case they are not ASCII.
There are probably many bugs in the JDK. They should be addressed globally.
jio_snprintf(msg, 1024,
"CreateProcess: %s error=%d", cmd, GetLastError());
JNU_ThrowByName(env, "java/io/IOException", msg);
(This is actually bug 5023243)
All such uses of GetLastError and filenames
need to be checked for proper encoding in case they are not ASCII.
There are probably many bugs in the JDK. They should be addressed globally.
- relates to
-
JDK-8198918 jio_snprintf and friends are not checked by -Wformat
- Closed
-
JDK-5023243 (process) Error msg on exception is not displayed correctly in Japanese on XP
- Resolved