[11u] RFA: 8242283: Can't start JVM when java home path includes non-ASCII character
Yasumasa Suenaga
suenaga at oss.nttdata.com
Tue Apr 14 00:40:59 UTC 2020
Hi all,
Please approve this backport:
JBS: https://bugs.openjdk.java.net/browse/JDK-8242283
webrev: http://cr.openjdk.java.net/~ysuenaga/JDK-8242283/11u/webrev.00/
original changeset: https://hg.openjdk.java.net/jdk/jdk/rev/5f5876adb88c
JVM fails to start on Windows with non-ASCII characters in the path if current regional format differs from the system locale.
We need to convert char* to wchar_t* to support long path, so I used CP_THREAD_ACP in MultiByteToWideChar().
But we found CP_ACP works nicely rather than CP_THREAD_ACP.
Using CP_THREAD_ACP was introduced in JDK-8240197 and JDK-8240725, however only JDK-8240197 has been backported to 11u.
So I want to apply original bug to 11u partially. (it makes the change for HotSpot only)
Thanks,
Yasumasa
More information about the jdk-updates-dev
mailing list