[11u] RFA: 8242283: Can't start JVM when java home path includes non-ASCII character
suenaga at oss.nttdata.com
Tue Apr 14 00:40:59 UTC 2020
Please approve this backport:
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)
More information about the jdk-updates-dev