RFR: 8289797: tools/launcher/I18NArgTest.java fails on Japanese Windows environment [v3]
Naoto Sato
naoto at openjdk.org
Fri Sep 16 16:21:46 UTC 2022
On Fri, 16 Sep 2022 13:59:32 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> I'm sorry, I can't replace this code with a HexFormat one-line. Do you have an example code?
>
> 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 🙂
-------------
PR: https://git.openjdk.org/jdk/pull/9389
More information about the core-libs-dev
mailing list