Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICU-22922 Merge maint/maint-76 to main #3258

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions KEYS
Original file line number Diff line number Diff line change
Expand Up @@ -1312,3 +1312,36 @@ buAuLkKKI35T4Lz2U41GMVIMZ7drlhbfDGugk1qT1cXJPZbPnHt+uFNUY0pTJaf3
WapxBp2/lKhgsIE=
=ZWln
-----END PGP PUBLIC KEY BLOCK-----
pub ed25519 2024-08-19 [SC] [expires: 2027-08-19]
E52F07877A5805F9AF4AB0ACD46C5610D06E7001
uid [ultimate] ICU Release Robot <[email protected]>
sig 3 D46C5610D06E7001 2024-08-19 ICU Release Robot <[email protected]>
sig 3 9B432B27D1BA20D7 2024-10-01 Fredrik Roubert <[email protected]>
sub cv25519 2024-08-19 [E] [expires: 2027-08-19]
sig D46C5610D06E7001 2024-08-19 ICU Release Robot <[email protected]>

-----BEGIN PGP PUBLIC KEY BLOCK-----

mDMEZsO4fRYJKwYBBAHaRw8BAQdAcxaiyqFbaECpSz7mhsXzopzN9Cxwv80WlWGN
gM3qpOi0KUlDVSBSZWxlYXNlIFJvYm90IDxpY3Utcm9ib3RAdW5pY29kZS5vcmc+
iJkEExYKAEEWIQTlLweHelgF+a9KsKzUbFYQ0G5wAQUCZsO4fQIbAwUJBaOagAUL
CQgHAgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRDUbFYQ0G5wAQOWAQDs628TYI+F
oTaJ1jzqC3ObL6we4tmrW7yHL1KFR5xrhwD/ZioLjdrIUQZhcjV9rNt7mYZm/Ttl
hn06bx06eyjf0QyJAjMEEwEIAB0WIQT/qRKaGA12W3pb6hybQysn0bog1wUCZvwt
VgAKCRCbQysn0bog11wED/0dUw/riFIixjNRAoi+beQ1f42dG/60xm7qquZ4kE3n
KysN773YgE1Gl8wPsFBbAAznO++fJ2ONjTks4QNOV0MB5Rgv+LwK+5oOKDRA9LxE
QRCRYtFpErbCirIn/EGVJJCCbF+SoUY8rJL+PTfzHGDkJGK0lQIA49rdWjV9PW06
4FRufzNrg4jNMCsJ5i67mjSb267C7I2mcfM3xX2nqZdOFW+wdctm9fvAWpIMQEQ5
6J0wIQxwtF3GulKqr/7EV0LSB0Is0E4BBjwROMFiSa53Va/lcfZaQ7nJ8flsAfkO
gGmvGjM5VH1kO2hnhm5ps5x/fIqSbw7X2nYsUXjbL6YKHbUsbV1ybpS5XCnMcTyx
t5zmWkfZNLZk4+Qh/td6MyW7OmycY2GazRpMA28pX6gQYFBcSoXHNFqIyXU7wFJp
BmDqe8gbi7FIlewwS+XP5dWfNvP5EqfztO7p8hxB2O1ZIYxMKerr0Q6rvY9/fEL5
fd7OMdK5OkQWASF7NjDFG9I50N4W/1+1jUHytp6bBtjjdnebp4a8gidP88HeGidk
2ONV9Yf0hOZUpRfMEFxpLxd9Ker928iZpopXOZ7AipFcXghWrReyTMljqXYvzNtd
qRdH3WmnNx4zw2K/JgAtOw9Domc09UzEFFHgAscUVXvsoVX4g8soZnBWomtlCfU0
/bg4BGbDuH0SCisGAQQBl1UBBQEBB0Djm2qMxtO+jO+uhT5nScClgbSvdmWAjbt9
RIQh60+4QgMBCAeIfgQYFgoAJhYhBOUvB4d6WAX5r0qwrNRsVhDQbnABBQJmw7h9
AhsMBQkFo5qAAAoJENRsVhDQbnABkbUA/ib52SlXmDcBPsvCz+VQOsqt1OvmeioS
NSbBQ0KK5M66AQCs7zuWUQQhptmeB2l7sP528nsFv4FJfZ/McqauwTq7Bg==
=BHrV
-----END PGP PUBLIC KEY BLOCK-----
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
1 change: 0 additions & 1 deletion icu4c/source/common/unicode/urename.h
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,6 @@
#define usnum_setMinimumIntegerDigits U_ICU_ENTRY_POINT_RENAME(usnum_setMinimumIntegerDigits)
#define usnum_setSign U_ICU_ENTRY_POINT_RENAME(usnum_setSign)
#define usnum_setToInt64 U_ICU_ENTRY_POINT_RENAME(usnum_setToInt64)
#define usnum_truncateStart U_ICU_ENTRY_POINT_RENAME(usnum_truncateStart)
#define usnumf_close U_ICU_ENTRY_POINT_RENAME(usnumf_close)
#define usnumf_format U_ICU_ENTRY_POINT_RENAME(usnumf_format)
#define usnumf_formatInt64 U_ICU_ENTRY_POINT_RENAME(usnumf_formatInt64)
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
24 changes: 2 additions & 22 deletions icu4c/source/test/intltest/loctest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3518,8 +3518,8 @@ LocaleTest::TestAddLikelyAndMinimizeSubtags() {
"zh_TW"
}, {
"und_Hant_CN",
"zh_Hant_CN",
"zh_Hant_CN"
"yue_Hant_CN",
"yue_Hant_CN"
}, {
"und_Hant_TW",
"zh_Hant_TW",
Expand Down Expand Up @@ -4130,10 +4130,6 @@ LocaleTest::TestAddLikelyAndMinimizeSubtags() {
for (const auto& item : full_data) {
const char* const org = item.from;
const char* const exp = item.add;
if (uprv_strcmp(org,"und_Hant_CN") == 0 &&
logKnownIssue("CLDR-17981", "und_Hant_CN changed expected result for Likely Subtags")) {
continue;
}
Locale res(org);
res.addLikelySubtags(status);
status.errIfFailureAndReset("\"%s\"", org);
Expand All @@ -4147,10 +4143,6 @@ LocaleTest::TestAddLikelyAndMinimizeSubtags() {
for (const auto& item : full_data) {
const char* const org = item.from;
const char* const exp = item.remove;
if (uprv_strcmp(org,"und_Hant_CN") == 0 &&
logKnownIssue("CLDR-17981", "und_Hant_CN changed expected result for Likely Subtags")) {
continue;
}
Locale res(org);
res.minimizeSubtags(status);
status.errIfFailureAndReset("\"%s\"", org);
Expand Down Expand Up @@ -5718,10 +5710,6 @@ void LocaleTest::TestIsRightToLeft() {
assertTrue("ckb RTL", Locale("ckb").isRightToLeft(), false, true); // Sorani Kurdish
assertFalse("fil LTR", Locale("fil").isRightToLeft());
assertFalse("he-Zyxw LTR", Locale("he-Zyxw").isRightToLeft());

if (logKnownIssue("CLDR-17981", "und_Hant_CN changed expected result for Likely Subtags")) {
return;
}
}

void LocaleTest::TestBug11421() {
Expand Down Expand Up @@ -5925,14 +5913,6 @@ testLikelySubtagsLineFn(void *context,
*pErrorCode = U_ZERO_ERROR;
return;
}

if ( (uprv_strcmp(source.c_str(), "und-Latn-MU") == 0 || uprv_strcmp(source.c_str(), "und-Latn-RS") == 0 || uprv_strcmp(source.c_str(), "und-Latn-SL") == 0
|| uprv_strcmp(source.c_str(), "und-Latn-TK") == 0 || uprv_strcmp(source.c_str(), "und-Latn-ZM") == 0 )
&& THIS->logKnownIssue("CLDR-17981", "und_Hant_CN changed expected result for Likely Subtags")) {
return;
}



Locale actualMax(l);
actualMax.addLikelySubtags(*pErrorCode);
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
2 changes: 1 addition & 1 deletion icu4j/demos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
</parent>

<artifactId>demos</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/charset/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/collate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/common_tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3659,9 +3659,9 @@ else if (!res.toString().equals(exp)) {
"zh_Hant_TW",
"zh_TW"
}, {
"und_Hant_CN",
"zh_Hant_CN",
"zh_Hant_CN"
"und_Hant_CN",
"yue_Hant_CN",
"yue_Hant_CN"
}, {
"und_Hant_TW",
"zh_Hant_TW",
Expand Down Expand Up @@ -4166,10 +4166,6 @@ else if (!res.toString().equals(exp)) {
};

for (int i = 0; i < full_data.length; i++) {
if (full_data[i][0].equals("und_Hant_CN") &&
logKnownIssue("CLDR-17981", "und_Hant_CN changed expected result for Likely Subtags")) {
continue;
}
ULocale org = new ULocale(full_data[i][0]);
ULocale res = ULocale.addLikelySubtags(org);
String exp = full_data[i][1];
Expand Down Expand Up @@ -5718,14 +5714,14 @@ public void likelySubtagsDataDriven(TestCase test) {
assertEquals("addLikelySubtags(" + test.source + ") should be unchanged",
l, ULocale.addLikelySubtags(l));
} else {
if ( ( test.source.equals("und-Latn-MU") || test.source.equals("und-Latn-RS") || test.source.equals("und-Latn-SL")
|| test.source.equals("und-Latn-TK") || test.source.equals("und-Latn-ZM") )
&& logKnownIssue("CLDR-17981", "und_Hant_CN changed expected result for Likely Subtags") ) {
return;
}
assertEquals("addLikelySubtags(" + test.source + ")",
test.addLikely, ULocale.addLikelySubtags(l).toLanguageTag());
}
if ( ( test.source.equals("und-Latn-MU") || test.source.equals("und-Latn-RS") || test.source.equals("und-Latn-SL")
|| test.source.equals("und-Latn-TK") || test.source.equals("und-Latn-ZM") )
&& logKnownIssue("CLDR-18002", "Incorrect Likely Subtags for some entries modified in CLDR 46") ) {
return;
}
assertEquals("addLikelySubtags(" + test.source + ")",
test.addLikely, ULocale.addLikelySubtags(l).toLanguageTag());
}
if (test.removeFavorRegion.equals("FAIL")) {
assertEquals("minimizeSubtags(" + test.source + ") should be unchanged",
l, ULocale.minimizeSubtags(l));
Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/currdata/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/icu4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/langdata/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/localespi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/regiondata/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/translit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/perf-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
</parent>

<artifactId>perf-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion icu4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<packaging>pom</packaging>

<name>${proj-title} (${project.artifactId})</name>
Expand Down
4 changes: 2 additions & 2 deletions icu4j/releases_tools/shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
export MAVEN_ARGS='--no-transfer-progress'

# Version update!
export artifact_version='76.1-SNAPSHOT'
export github_rel_version='76rc'
export artifact_version='76.1'
export github_rel_version='76_1'
export api_report_version='76'
export api_report_prev_version='75'
export out_dir=target
Expand Down
2 changes: 1 addition & 1 deletion icu4j/samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
</parent>

<artifactId>samples</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion icu4j/tools/build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion icu4j/tools/misc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j-root</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion tools/cldr/cldr-to-icu/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<dependency>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j</artifactId>
<version>76.1-SNAPSHOT</version>
<version>76.1</version>
<!-- Note: see https://github.com/unicode-org/icu/packages/1954682/versions
for the icu4j.version tag to use. In general we should just use the latest
SNAPSHOT for the ICU version that we want, so this should only need updating
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static java.util.stream.Collectors.joining;

import java.nio.file.Files;
import java.nio.file.Path;
Expand All @@ -22,7 +21,6 @@
import com.google.common.collect.ImmutableSetMultimap;
import com.google.common.collect.ImmutableTable;
import com.google.common.collect.SetMultimap;
import com.google.common.collect.Sets;
import com.google.common.collect.Table;
import com.google.common.collect.TreeBasedTable;
import com.google.common.collect.TreeMultimap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.util.Map;
import java.util.Set;

import com.google.common.base.Preconditions;
import org.unicode.cldr.api.CldrDraftStatus;
import org.unicode.icu.tool.cldrtoicu.LdmlConverter.OutputType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.unicode.cldr.tool.LikelySubtags;
import org.unicode.cldr.util.LanguageTagCanonicalizer;
import org.unicode.cldr.util.LocaleIDParser;
import org.unicode.cldr.util.SupplementalDataInfo;
import org.unicode.icu.tool.cldrtoicu.testing.FakeDataSupplier;

import com.google.common.base.Joiner;
Expand Down
Loading