CLDR Ticket #6275(closed defect: fixed)
AddLikelySubtags as defined in TR35 appears inconsistent.
|Reported by:||mpvl@…||Owned by:||mark|
Description (last modified by markus) (diff)
I would expect that if addLikelyTags(und_XX ) produces xx_Scrp_XX, und_Scrp_XX results in xx_Scrp_XX as well. However, consider the following data in likelySubtags.xml:
<likelySubtag from="und_BJ" to="fr_Latn_BJ"/>
There is no from "und_Latn_BJ". According to step 2 of the algorithm in TR35, we would first check und_Latn_BJ, which does not match. Then, in step 2.2, we find a match for und_Latn. Based on this, we would expect an output of en_Latn_BJ. This would break the principle mentioned before, though.
Instead, I would expect fr_Latn_BJ. ICU, btw, does "the right thing" and returns fr_Latn_BJ.
- Owner changed from anybody to mark
- Status changed from new to assigned
- Milestone changed from UNSCH to 24rc