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

Error behaviour not defined for Add Likely Subtags algorithm #42

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

Error behaviour not defined for Add Likely Subtags algorithm #42

anba opened this issue May 21, 2018 · 2 comments

Comments

@anba
Copy link
Contributor

anba commented May 21, 2018

https://www.unicode.org/reports/tr35/#Likely_Subtags has under step 3:

  1. If there is no match,either return
    1. an error value, or
    2. the match for "und" (in APIs where a valid language tag is required).

FWIW ICU's uloc_addLikelySubtags seems to perform neither of the two options from above, instead it returns the input language tag.

@littledan
Copy link
Member

Let's discuss this in the Intl meeting; maybe we will choose between one of these three options.

@srl295
Copy link
Member

srl295 commented Jun 15, 2018

ICU's uloc_addLikelySubtags seems to perform neither of the two options from above

The ICU function could return a warning (that it was not able to find a match) , probably changing to und would be breaking.

file a bug and link it here?

littledan added a commit that referenced this issue Jul 14, 2018
When Intl.Locale.prototype.maximize() and minimize() are called on
locales which don't appear in CLDR's database of known locales with
likely subtags, the semantics were previously unclear. With this
patch, a new, identical Locale object is returned.

These semantics encode the conclusion of the discussion in the
June 2018 Intl meeting.

Closes #42
littledan added a commit that referenced this issue Jul 28, 2018
When Intl.Locale.prototype.maximize() and minimize() are called on
locales which don't appear in CLDR's database of known locales with
likely subtags, the semantics were previously unclear. With this
patch, a new, identical Locale object is returned.

These semantics encode the conclusion of the discussion in the
June 2018 Intl meeting.

Closes #42
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

3 participants