Skip to content

Commit

Permalink
ICU-22935 Add ZWG to static currency lists
Browse files Browse the repository at this point in the history
  • Loading branch information
DraganBesevic committed Oct 4, 2024
1 parent 9e68dce commit fbfe436
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 @@ -2024,6 +2024,7 @@ static const struct CurrencyList {
{"ZRN", UCURR_COMMON|UCURR_DEPRECATED},
{"ZRZ", UCURR_COMMON|UCURR_DEPRECATED},
{"ZWD", UCURR_COMMON|UCURR_DEPRECATED},
{"ZWG", UCURR_COMMON|UCURR_NON_DEPRECATED},
{"ZWL", UCURR_COMMON|UCURR_DEPRECATED},
{"ZWR", UCURR_COMMON|UCURR_DEPRECATED},
{ nullptr, 0 } // Leave here to denote the end of the list.
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 @@ -116,6 +116,9 @@ static void TestEnumList(void) {

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

// CLDR 46 and ICU-22935
expectInList("ZWG", 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 @@ -1545,6 +1545,10 @@ structLocale:table(nofallback){
"",
"",
}
ZWG{
"",
"",
}
ZWL{
"",
"",
Expand Down Expand Up @@ -4039,6 +4043,14 @@ structLocale:table(nofallback){
many{""}
other{""}
}
ZWG{
zero{""}
one{""}
two{""}
few{""}
many{""}
other{""}
}
ZWL{
zero{""}
one{""}
Expand Down

0 comments on commit fbfe436

Please sign in to comment.