RFR: 8285517: System.getenv() returns unexpected value if environment variable has non ASCII character [v4]
Roger Riggs
rriggs at openjdk.java.net
Thu May 5 15:50:24 UTC 2022
On Thu, 5 May 2022 15:41:44 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Hello @naotoj .
>> If I just use `System.getProperty("sun.jnu.encoding")`, following testcases were failed.
>>
>> java/lang/ProcessBuilder/SecurityManagerClinit.java
>> java/lang/ProcessHandle/PermissionTest.java
>>
>> Please give me your suggestion again.
>
> Ah, OK. Never mind.
It might be worthwhile to cache the `sun.jnu.encoding` property value in jdk/internal/util/StaticProperty.
And perhaps even cache the Charset (not just the string).
-------------
PR: https://git.openjdk.java.net/jdk/pull/8378
More information about the core-libs-dev
mailing list