RFR: 8289689: (fs) Re-examine the need for normalization to Unicode Normalization Format D (macOS) [v2]
Alan Bateman
alanb at openjdk.org
Mon Oct 31 16:02:11 UTC 2022
On Sat, 29 Oct 2022 12:04:48 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>>> Can we use `sun.security.action.GetBooleanAction#privilegedGetProperty` instead?
>>
>> That is problematic for the case that a value is empty, as in `-Djdk.nio.path.useNormalizationFormD`.
>
> I'm not sure I understand. What the problem with empty value exactly?
There are 4 cases:
jdk.nio.path.useNormalizationFormD not set
-Djdk.nio.path.useNormalizationFormD
-Djdk.nio.path.useNormalizationFormD=true or a case variant
-Djdk.nio.path.useNormalizationFormD=false or a case variant
The second and third should enable the normalisation. This will do it
NORMALIZE_FILE_PATHS = (value != null)
&& ("".equals(value) || Boolean.parseBoolean(value));
-------------
PR: https://git.openjdk.org/jdk/pull/10885
More information about the nio-dev
mailing list