Handle the sr-Cyrl-ME -> sr-ME collation-only fallback#7867
Handle the sr-Cyrl-ME -> sr-ME collation-only fallback#7867robertbastian merged 1 commit intounicode-org:mainfrom
sr-Cyrl-ME -> sr-ME collation-only fallback#7867Conversation
sffc
left a comment
There was a problem hiding this comment.
Would be nice for the test to actually run the Collator constructor but it is a bit tricky... good for a follow-up.
|
Do I understand correctly that explicitly asking for Cyrillic collation for Montenegrin now results in the Latin collation similarly to how asking for Cyrillic collation for Croatian results in the Latin collation ... but unlike Bosnian and Serbian, which do allow explicit request for the non-default script. Why? What's the upstream CLDR issue motivating this change? For reference, here's the Firefox/SpiderMonkey test case that documents the situation before this PR: https://searchfox.org/firefox-main/rev/23974e2d947e31e4ae42ae2758a4416c9a6d8671/js/src/tests/non262/Intl/Collator/bcms.js Also, AFAICT, there is no technical reason why we couldn't merge the Latin and Cyrillic collation data for Bosnian-Croatian-Montenegrin-Serbian and make Latn vs. Cyrl a matter of script reordering on top. Are users of Bosnian-Croatian-Montenegrin-Serbian actually better served by having the other script collate according to root as opposed to having the other script also collate according to language-specific rules? |
|
Apparently these come from upstreaming ICU behaviour to CLDR: unicode-org/cldr#2664, unicode-org/cldr#3504. I believe it was initially added to ICU in icu4c/source/data/icu-coll-deprecates.xml, which was commited as "Merge CLDR25 data into trunk". However, I cannot find any reference to The initial aliases from that file have since evolved through
and the ones that are just likely subtags have disappeared, leaving just
have been added and removed. It still says
today, but that work is not being tracked anywhere, and apparently wasn't enough to have someone look at this before upstreaming it into CLDR. Footnotes |
…nicode-org#7867)" This reverts commit 0f348cc.
Reverts #7867 ## Changelog N/A
Fixes #3287
This handles the
sr-Cyrl-ME->sr-MEfallback the same way we handle the other collation-only fallbacks: by explicitly adding the data forsr-Cyrl-MEso we don't go through the default fallback mechanism for that locale.Changelog
N/A