Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Applying Likely-Subtags algorithms may add non-IANA registered subtags #41

Closed
anba opened this issue May 21, 2018 · 4 comments
Closed

Comments

@anba
Copy link
Contributor

anba commented May 21, 2018

CLDR contains private use region entries for Kosovo (XK) and Outlying Oceania (QO) which are not official IANA assigned region subtags. That means for example when applying the "Add Likely Subtags" algorithm, the returned language tag may contain non-IANA registered subtags:

js> new Intl.Locale("aln").maximize().toString() 
"aln-Latn-XK"

Do we care about this case? Is it acceptable to return non-IANA registered subtags or do we need to filter them out?

@littledan
Copy link
Member

What would be the reason for filtering them out?

@srl295
Copy link
Member

srl295 commented Jun 15, 2018

I don't think we should filter based on IANA registration, just as string operations should not filter out non-assigned Unicode code points.

@aphillips
Copy link

Um... XK and QO are most definitely in the registry---as private use subtags. Filtering these subtags out would be wrong.

@littledan
Copy link
Member

OK, It seems like we are all in agreement that these regions do not need to be filtered out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants