RFR: 8289797: tools/launcher/I18NArgTest.java fails on Japanese Windows environment [v3]
KIRIYAMA Takuya
duke at openjdk.org
Wed Sep 21 11:38:36 UTC 2022
On Fri, 16 Sep 2022 16:19:35 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Extract to a byte array with the appropriate charset and then HexFormat the bytearray.
>>
>>
>> var SysPropHexVal = HexFormat.of().formatHex(sysPropVal.getBytes(StandardCharsets.UTF_16));
>
> Thanks, Roger. You beat me to it 🙂
Thank you, I fixed it. In addition, since the return value of formatHex is four digits, I fixed the second argument passed to execTest to match that format.
-------------
PR: https://git.openjdk.org/jdk/pull/9389
More information about the core-libs-dev
mailing list