--- old/src/hotspot/os/windows/os_windows.cpp 2020-04-14 09:15:20.088459500 +0900 +++ new/src/hotspot/os/windows/os_windows.cpp 2020-04-14 09:15:19.811128800 +0900 @@ -4250,7 +4250,7 @@ static errno_t convert_to_unicode(char const* char_path, LPWSTR* unicode_path) { // Get required buffer size to convert to Unicode - int unicode_path_len = MultiByteToWideChar(CP_THREAD_ACP, + int unicode_path_len = MultiByteToWideChar(CP_ACP, MB_ERR_INVALID_CHARS, char_path, -1, NULL, 0); @@ -4260,7 +4260,7 @@ *unicode_path = NEW_C_HEAP_ARRAY(WCHAR, unicode_path_len, mtInternal); - int result = MultiByteToWideChar(CP_THREAD_ACP, + int result = MultiByteToWideChar(CP_ACP, MB_ERR_INVALID_CHARS, char_path, -1, *unicode_path, unicode_path_len);