Skip to content

Commit 42c2b39

Browse files
committed
ICU-22935 Add ZWG to static currency lists
1 parent ebbadeb commit 42c2b39

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

icu4c/source/common/ucurr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,7 @@ static const struct CurrencyList {
20242024
{"ZRN", UCURR_COMMON|UCURR_DEPRECATED},
20252025
{"ZRZ", UCURR_COMMON|UCURR_DEPRECATED},
20262026
{"ZWD", UCURR_COMMON|UCURR_DEPRECATED},
2027+
{"ZWG", UCURR_COMMON|UCURR_NON_DEPRECATED},
20272028
{"ZWL", UCURR_COMMON|UCURR_DEPRECATED},
20282029
{"ZWR", UCURR_COMMON|UCURR_DEPRECATED},
20292030
{ nullptr, 0 } // Leave here to denote the end of the list.

icu4c/source/test/cintltst/currtest.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ static void TestEnumList(void) {
116116

117117
// CLDR 45 and ICU-22726
118118
expectInList("XCG", UCURR_ALL, true);
119+
120+
// CLDR 46 and ICU-22935
121+
expectInList("ZWG", UCURR_ALL, true);
119122
}
120123

121124
static void TestEnumListReset(void) {

icu4c/source/test/testdata/structLocale.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,10 @@ structLocale:table(nofallback){
15451545
"",
15461546
"",
15471547
}
1548+
ZWG{
1549+
"",
1550+
"",
1551+
}
15481552
ZWL{
15491553
"",
15501554
"",
@@ -4039,6 +4043,14 @@ structLocale:table(nofallback){
40394043
many{""}
40404044
other{""}
40414045
}
4046+
ZWG{
4047+
zero{""}
4048+
one{""}
4049+
two{""}
4050+
few{""}
4051+
many{""}
4052+
other{""}
4053+
}
40424054
ZWL{
40434055
zero{""}
40444056
one{""}

0 commit comments

Comments
 (0)