mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 14:05:32 +00:00
ICU-21401 Fix C++ canonicalize cel-gaulish to xtg
Java is already doing so.
This commit is contained in:
parent
f7ab1f7c50
commit
916f6a0b73
3 changed files with 6 additions and 1 deletions
|
@ -129,7 +129,6 @@ static const char* const LEGACY[] = {
|
|||
// Legacy tags with no preferred value in the IANA
|
||||
// registry. Kept for now for the backward compatibility
|
||||
// because ICU has mapped them this way.
|
||||
"cel-gaulish", "xtg-x-cel-gaulish",
|
||||
"i-default", "en-x-i-default",
|
||||
"i-enochian", "und-x-i-enochian",
|
||||
"i-mingo", "see-x-i-mingo",
|
||||
|
|
|
@ -4915,6 +4915,9 @@ void LocaleTest::TestCanonicalize(void)
|
|||
|
||||
// ICU-21344
|
||||
{ "ku-Arab-NT", "ku-Arab-IQ"},
|
||||
|
||||
// ICU-21401
|
||||
{ "cel-gaulish", "xtg"},
|
||||
};
|
||||
int32_t i;
|
||||
for (i=0; i < UPRV_LENGTHOF(testCases); i++) {
|
||||
|
|
|
@ -5215,6 +5215,9 @@ public class ULocaleTest extends TestFmwk {
|
|||
|
||||
// ICU-21344
|
||||
Assert.assertEquals("ku-Arab-IQ", canonicalTag("ku-Arab-NT"));
|
||||
|
||||
// ICU-21401
|
||||
Assert.assertEquals("xtg", canonicalTag("cel-gaulish"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Reference in a new issue