On Wed, 1 Jul 2026 18:52:35 GMT, Naoto Sato <[email protected]> wrote:

>> Fixed. 
>> 
>> Separately, I wanted to follow up on the `no_NO_NY` case handling. We 
>> currently have the following behavior,
>> 
>> 
>> jshell> var loc = Locale.forLanguageTag("no-Latn-NO-x-lvariant-NY")
>> loc ==> no_NO_NY_#Latn
>> 
>> jshell> var tag = loc.toLanguageTag()
>> tag ==> "nn-Latn-NO"
>> 
>> 
>> That is, `forLanguageTag` will provide compatibility support for this case, 
>> even if a script is present. I presume we will want to fix that there as 
>> well?
>
> I think so. That would be consistent with how we handle legacy locales

https://github.com/openjdk/jdk/pull/31728/commits/9e846337d9dca5a085e627957eaec0aed722272d
 changes legacy locale handling to be exact matches. That is, there must be an 
empty script and no additional extensions.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/31728#discussion_r3546330627

Reply via email to