Skip to content

Commit

Permalink
ICU-22726 Add new CLDR 45 currency code XCG also to gCurrencyList.
Browse files Browse the repository at this point in the history
  • Loading branch information
roubert authored and markusicu committed Apr 15, 2024
1 parent 530e9a5 commit d8ee684
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions icu4c/source/common/ucurr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2003,6 +2003,7 @@ static const struct CurrencyList {
{"XBC", UCURR_UNCOMMON|UCURR_NON_DEPRECATED},
{"XBD", UCURR_UNCOMMON|UCURR_NON_DEPRECATED},
{"XCD", UCURR_COMMON|UCURR_NON_DEPRECATED},
{"XCG", UCURR_COMMON|UCURR_NON_DEPRECATED},
{"XDR", UCURR_UNCOMMON|UCURR_NON_DEPRECATED},
{"XEU", UCURR_UNCOMMON|UCURR_DEPRECATED},
{"XFO", UCURR_UNCOMMON|UCURR_NON_DEPRECATED},
Expand Down
3 changes: 3 additions & 0 deletions icu4c/source/test/cintltst/currtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ static void TestEnumList(void) {
expectInList("VED", UCURR_NON_DEPRECATED, true);

expectInList("EQE", UCURR_ALL, false);

// CLDR 45 and ICU-22726
expectInList("XCG", UCURR_ALL, true);
}

static void TestEnumListReset(void) {
Expand Down
12 changes: 12 additions & 0 deletions icu4c/source/test/testdata/structLocale.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,10 @@ structLocale:table(nofallback){
"",
"",
}
XCG{
"",
"",
}
XDR{
"",
"",
Expand Down Expand Up @@ -3843,6 +3847,14 @@ structLocale:table(nofallback){
many{""}
other{""}
}
XCG{
zero{""}
one{""}
two{""}
few{""}
many{""}
other{""}
}
XDR{
zero{""}
one{""}
Expand Down

0 comments on commit d8ee684

Please sign in to comment.