ignorePunctuation collator option is locale-dependent
Categories
(Core :: JavaScript: Internationalization API, defect, P3)
Tracking
()
People
(Reporter: anba, Assigned: anba)
References
Details
Attachments
(3 files)
Fix the issue reported in https://github.com/tc39/ecma402/issues/832.
| Assignee | ||
Comment 1•2 years ago
|
||
Add Collator::GetIgnorePunctuation() similar to the existing
Collator::GetCaseFirst() function.
Drive-by change:
- Remove unnecessary macro with an inline function.
Depends on D189542
| Assignee | ||
Comment 2•2 years ago
|
||
Adds intl_isIgnorePunctuation() and SharedIntlData::isIgnorePunctuation(),
which are both similar to the existing intl_isUpperCaseFirst() and
SharedIntlData::isUpperCaseFirst().
Depends on D189543
| Assignee | ||
Comment 3•2 years ago
|
||
The default value for GetOption in InitializeCollator is changed from false
to undefined to avoid having to intl_isIgnorePunctuation in the constructor
function.
The corresponding spec PR is https://github.com/tc39/ecma402/pull/833, but
our behaviour is already not strictly spec-compliant as described in
https://github.com/tc39/ecma402/issues/832, so it seems reasonable to simply
implement the spec PR ahead of time. (We don't want to "fix" our implementation
to strictly follow the spec without the PR, because that could be web-incompatible
resp. at least disruptive for Thai users, which currently already get the expected
behaviour where punctuation characters are ignored in Thai.)
Depends on D189544
Updated•2 years ago
|
Updated•2 years ago
|
Comment 5•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/ca59d4521a8e
https://hg.mozilla.org/mozilla-central/rev/a58b936add5f
https://hg.mozilla.org/mozilla-central/rev/bcf3b4652f99
Comment 6•2 years ago
|
||
The patch landed in nightly and beta is affected.
:anba, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox120towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 7•2 years ago
|
||
(In reply to BugBot [:suhaib / :marco/ :calixte] from comment #6)
The patch landed in nightly and beta is affected.
:anba, is this bug important enough to require an uplift?
No, uplift isn't required.
Description
•