Skip to content

Editorial: Relax UpdateLanguageId language tag constraints from "canonical" to "structurally valid" #1008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gibson042
Copy link
Contributor

Canonicalization is already performed by MakeLocaleRecord, and not needed before it.

gibson042 added 2 commits May 30, 2025 13:16
…nical" to "structurally valid"

Canonicalization is already performed by MakeLocaleRecord, and not needed before it.
@gibson042 gibson042 requested review from sffc, anba and ryzokuken May 30, 2025 17:23
@@ -27,7 +27,6 @@ <h1>Intl.Locale ( _tag_ [ , _options_ ] )</h1>
1. Let _tag_ be ? ToString(_tag_).
1. Set _options_ to ? CoerceOptionsToObject(_options_).
1. If IsStructurallyValidLanguageTag(_tag_) is *false*, throw a *RangeError* exception.
1. Set _tag_ to CanonicalizeUnicodeLocaleId(_tag_).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing canonicalisation is still a normative change: #804 (review)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All right, that's twice now... this is clearly too subtle, so I've added an explanatory note.

gibson042 added 2 commits May 31, 2025 12:16
…nicalization

The relevant algorithms are buried rather deep in that section.
@gibson042 gibson042 requested a review from anba May 31, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants