summaryrefslogtreecommitdiff
path: root/icu4j
AgeCommit message (Collapse)Author
2023-06-02Cherry-pick:ICU-22357 Update gb18030 mappings for the -2022 versionPeter Edberg
Upstream commit in maint/maint-73: https://github.com/unicode-org/icu/commit/130bdd47480ee1bf4ac7edc5188c997e1058e481 Upstream Bug: https://unicode-org.atlassian.net/browse/ICU-22357 (cherry picked from commit 130bdd47480ee1bf4ac7edc5188c997e1058e481) Bug: 285382388 Test: atest CtsIcu4cTestCases (cherry picked from https://android-review.googlesource.com/q/commit:4f6ec4a903dc59895280ada90dd023109513b428) Merged-In: I7add8f40b8ce2053f28860682b2b3783dd3c0cbb Change-Id: I7add8f40b8ce2053f28860682b2b3783dd3c0cbb
2023-06-02Cherry-pick:ICU-22357 Update gb18030 mappings for the -2022 versionPeter Edberg
Upstream commit in maint/maint-73: https://github.com/unicode-org/icu/commit/130bdd47480ee1bf4ac7edc5188c997e1058e481 Upstream Bug: https://unicode-org.atlassian.net/browse/ICU-22357 (cherry picked from commit 130bdd47480ee1bf4ac7edc5188c997e1058e481) Bug: 285382388 Test: atest CtsIcu4cTestCases Change-Id: I7add8f40b8ce2053f28860682b2b3783dd3c0cbb
2023-05-30Cherry-pick: ICU-22390 Speed-up ICU4J Transliterator.<clinit>Victor Chang
It reduces the method runtime by approx. 60%. Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22390 Upstream commit: https://github.com/unicode-org/icu/pull/2459 Bug: 266602846 Test: atest CtsIcuTestCases (cherry picked from https://android-review.googlesource.com/q/commit:3a12f83bc34c1b62b7cf3e03c70759b2c3716100) Merged-In: I6c3cd6009ecf528ec90717aeae9d2c05d7427f9a Change-Id: I6c3cd6009ecf528ec90717aeae9d2c05d7427f9a
2023-05-15Cherry-pick: ICU-22390 Speed-up ICU4J Transliterator.<clinit>Victor Chang
It reduces the method runtime by approx. 60%. Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22390 Upstream commit: https://github.com/unicode-org/icu/pull/2459 Bug: 266602846 Test: atest CtsIcuTestCases Change-Id: I6c3cd6009ecf528ec90717aeae9d2c05d7427f9a
2023-05-09Cherry-pick: ICU-22360 revert portions of #2159 which included @ in ALetter ↵Victor Chang
for wordbreak, update tests Upstream commit: https://github.com/unicode-org/icu/commit/5618203821839cad2286a67682fb1940c8ce586f Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22360 Bug: 280496810 Test: CtsIcuTestCases Test: CtsIcu4cTestCases (cherry picked from https://android-review.googlesource.com/q/commit:243f97b9d39239c8cc90f82c03fb1d4e16193ca0) Merged-In: I74c06fc3d8245114a879847d27b243cca2287a3b Change-Id: I74c06fc3d8245114a879847d27b243cca2287a3b
2023-05-09Cherry-pick: ICU-22360 revert portions of #2159 which included @ in ALetter ↵Victor Chang
for wordbreak, update tests Upstream commit: https://github.com/unicode-org/icu/commit/5618203821839cad2286a67682fb1940c8ce586f Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22360 Bug: 280496810 Test: CtsIcuTestCases Test: CtsIcu4cTestCases Change-Id: I74c06fc3d8245114a879847d27b243cca2287a3b
2023-05-05Merge "Re-generate ICU data for cherry-picks from CLDR 43" into udc-devVictor Chang
2023-05-05Re-generate ICU data for cherry-picks from CLDR 43Victor Chang
Bug: 280496810 Bug: 261704229 Test: CtsIcuTestCases Test: CtsIcu4cTestCases Test: CtsLibcoreTestCases Test: CtsLibcoreOjTestCases (cherry picked from https://android-review.googlesource.com/q/commit:60d94b126f8499d1220bc8bd8adb7c44c8bafdb7) Merged-In: I56c224d6b3fa1379823e76be84d046bc17ec057b Change-Id: I56c224d6b3fa1379823e76be84d046bc17ec057b
2023-05-05Cherry-pick: ICU-22378 Fix temperature format ignoring -u-mu-fahrenheMihai Nita
Upstream commit: https://github.com/unicode-org/icu/commit/0e4b10b1121a26fe4d1653d740f5a15bad9c48f0 Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22378 Bug: 280473143 Test: CtsIcuTestCases (cherry picked from https://android-review.googlesource.com/q/commit:7c77b31dee56dbc69fe9444810d5ba6daf2a2df1) Merged-In: I44aa63d96f667a2865744e50e4419e2296decb96 Change-Id: I44aa63d96f667a2865744e50e4419e2296decb96
2023-05-05Merge "Cherry-pick: ICU-22323 Remove broken link from the Chinese Calendar ↵Victor Chang
documentation" into udc-dev
2023-05-04Re-generate ICU data for cherry-picks from CLDR 43Victor Chang
Bug: 280496810 Bug: 261704229 Test: CtsIcuTestCases Test: CtsIcu4cTestCases Test: CtsLibcoreTestCases Test: CtsLibcoreOjTestCases Change-Id: I56c224d6b3fa1379823e76be84d046bc17ec057b
2023-05-04Cherry-pick: ICU-22378 Fix temperature format ignoring -u-mu-fahrenheMihai Nita
Upstream commit: https://github.com/unicode-org/icu/commit/0e4b10b1121a26fe4d1653d740f5a15bad9c48f0 Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22378 Bug: 280473143 Test: CtsIcuTestCases Change-Id: I44aa63d96f667a2865744e50e4419e2296decb96
2023-05-04Cherry-pick: ICU-22323 Remove broken link from the Chinese Calendar ↵Victor Chang
documentation Upstream commit: https://github.com/unicode-org/icu/pull/2449/commits/6d22ddb25743b43495f70c7f3cbf7c66f8bc23c3 Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22323 Bug: 267168809 Test: m droid (cherry picked from https://android-review.googlesource.com/q/commit:de3107ad66b9bbb0a660df2c8fa9737d9a103f18) Merged-In: I5a87acee8bb64de1c1c05fe19732e17559855a9a Change-Id: I5a87acee8bb64de1c1c05fe19732e17559855a9a
2023-05-04Cherry-pick: ICU-22371 Fix ULocale.getISOLanguages() API docsVictor Chang
Upstream commit: https://github.com/unicode-org/icu/commit/530ca9817641c6a90c9c8c5028996de1d559e4a8 Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22371 Bug: 277929411 Test: m droid (cherry picked from https://android-review.googlesource.com/q/commit:2dd2d2ae9e2dd18d2786c93198568489da33caa6) Merged-In: I5cbf2ba18d0d9f2bff89231ec87ecd1eae8c2057 Change-Id: I5cbf2ba18d0d9f2bff89231ec87ecd1eae8c2057
2023-05-03Cherry-pick: ICU-22371 Fix ULocale.getISOLanguages() API docsVictor Chang
Upstream commit: https://github.com/unicode-org/icu/commit/530ca9817641c6a90c9c8c5028996de1d559e4a8 Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22371 Bug: 277929411 Test: m droid Change-Id: I5cbf2ba18d0d9f2bff89231ec87ecd1eae8c2057
2023-05-03Cherry-pick: ICU-22323 Remove broken link from the Chinese Calendar ↵Victor Chang
documentation Upstream commit: https://github.com/unicode-org/icu/pull/2449/commits/6d22ddb25743b43495f70c7f3cbf7c66f8bc23c3 Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22323 Bug: 267168809 Test: m droid Change-Id: I5a87acee8bb64de1c1c05fe19732e17559855a9a
2023-03-29Per discussion marking icu4j-tests as not unit tests to prevent runningandroid-u-beta-1-gplJulien Desprez
Change-Id: Id11b8fc2d23b468ea683d9210653e49ab3c78518 Test: presubmit Bug: 274754646
2023-03-28Update Android TZDB from 2022g to 2023aSorin Basca
This change is associated with tzdb 2023a changes in system/timezone. These changes are cherry picked from upstream's ICU equivalent commit b31579920e11fe42eca67ccebe58d9dfd33edd80. Bug: 261692498 Test: see system/timezone (cherry picked from commit b31579920e11fe42eca67ccebe58d9dfd33edd80) Change-Id: I5c2bdcd82490baa29492e77b116af8dc2904dad4
2023-03-14Revert en-CA date format to avoid regression on Android UDCVictor Chang
Bug: 270991628 Test: m droid Change-Id: Id0991fe71e94e860c17dd896f93cd99caf877f9c
2023-02-24Cherry-pick: ICU-22226 Fix Calendar.getFirstDayOfWeek to honor -u-fwVictor Chang
Upstream commit: https://github.com/unicode-org/icu/commit/76df897b77fd938abc29c9121dde794300a171e6 Upstream bug: https://unicode-org.atlassian.net/browse/ICU-11870 Test: m droid Change-Id: Ic48e20ac9f94eea6246eb37e19b294c375262afe
2023-02-07Merge "Cherry-pick: ICU-22249 Fixed endless loop in ICUResourceBundle"Treehugger Robot
2023-02-07Cherry-pick: ICU-22249 Fixed endless loop in ICUResourceBundleVictor Chang
when you ask for a locale with a nonstandard parent and that locale is also the system default locale. Upstream commit: https://github.com/unicode-org/icu/commit/08f14db4c45f6cbcf5b6b5d45131c98b7b64b57c Upstream bug: https://unicode-org.atlassian.net/browse/ICU-22249 Bug: 267965573 Test: atest CtsIcuTestCases Change-Id: I7aa223ec75dafce4bfe66ddfeaa2fa60e570f46d
2023-02-04ICU-22100 Modify ML model to improve Japanese phrase breaking performanceallenwtsu
cherry-pick from https://github.com/unicode-org/icu/pull/2297 Bug: 219529457 Test: atest CtsIcuTestCases Change-Id: I482d01f57848ef90ba3a64ea5880978a2535dd8d
2023-01-19Disable ML phrase breakingmain-16k-with-phonesallenwtsu
Bug: 219529457 Test: atest CtsIcuTestCases Change-Id: I2eebb5835310dea2fab0cc827759c6d3a129cf29
2023-01-10ICU-22100 Remove unicode blocks from Japanese ML phrase breakingallenwtsu
Cherry-pick from https://github.com/unicode-org/icu/pull/2278 Bug: 219529457 Test: atest CtsIcuTestCases Change-Id: Ibc71ab8b6a24345c14d6a2a2fea0cdda7cb9433f
2023-01-09Merge "ICU-22100 Incorporate BudouX into ICU (Java)"Allen Su
2023-01-09ICU-22100 Incorporate BudouX into ICU (C++)Shuhei Iitsuka
Cherry-pick from https://github.com/unicode-org/icu/pull/2144 Bug: 219529457 Test: atest CtsIcu4cTestCases Change-Id: Ia2940ec9d6c5089d0daef744447b3575cf8a7b81
2023-01-09ICU-22100 Incorporate BudouX into ICU (Java)allenwtsu
Cherry-pick from https://github.com/unicode-org/icu/pull/2214 Bug: 219529457 Test: atest CtsIcuTestCases Change-Id: Id67d4ab3114854cf3b557624ee61e7e7b6420298
2022-12-06Update Android ICU data from 2022f to 2022g.Almaz Mingaleev
This change is associated with tzdb 2022g changes in system/timezone. Upstream has reverted root.txt changes, but not on Android. Unusually, upstream CLDR changes associated with TZDB 2022g alter the textual names for exemplar location for several zones, causing changes in root.txt and binary files that include that information. Upstream ICU's equivalent commit 3679179f5e5abc413d931e2ca519c46785b29156 reverted root.txt changes, but Android has included them for inclusion in the system image ICU files for the next major release. Note: The textual name changes are not required for 'pure' time zone updates on Android: Android's time zone updates do not include string / name changes, only time zone rules and metazone updates. Bug: 260965093 Test: see system/timezone (cherry picked from commit 3679179f5e5abc413d931e2ca519c46785b29156) Change-Id: I864cad524466d0efce2139ecf5ebd541fbf260d2 Merged-In: I864cad524466d0efce2139ecf5ebd541fbf260d2
2022-11-22Android patch: Fix TestCharset#TestSurrogateBehaviorVictor Chang
Android ICU4J doesn't have com.ibm.icu.charset or android.icu.charset. It's safe to ignore this test. Bug: 260054150 Test: cd external/icu/icu4j && atest --host-unit-test-only Change-Id: Id87c9d4a778e4f61d3ebe361f06e69d6230f61cc
2022-11-22Temporarily ignore TestCharset#TestSurrogateBehaviorOrion Hodson
Failing on with unit_tests_x86_64. Fix: 259742623 Test: m icu4j-tests Change-Id: I271386bea1ce28b266be1e28080e875945bec943
2022-11-15Regenerated binary data files with Android CLDR patchesVictor Chang
Binary data files updated using: tools/updateicudata.py Test: n/a Change-Id: Ic872e57818ee37d5514028f8fa0c6df4f8581102
2022-11-15Regenerated source data files with Android CLDR patchesVictor Chang
Source data files updated using: tools/updatecldrdata.py Test: n/a Change-Id: I8c8a8ae6723338a4089c478660621625af8f9ef4
2022-11-15Cherry-pick: Update Android ICU data from 2022e to 2022f.Almaz Mingaleev
This change is associated with tzdb 2022f changes in system/timezone. testdata.jar change is due to MANIFEST: it was changed from "Created-By: 17.0.2 (N/A)" to "Created-By: 17.0.4.1 (N/A)". Bug: 256576558 Test: see system/timezone (cherry picked from commit 8316af5e844a69e8beb484e2b9be1707e357f28b) Change-Id: Ib3ac550b2b25909a059af677a72143983d2d90c9
2022-11-15Cherry-pick: ICU-22119 Add lw=phrase for Korean using line_*_phrase_cjVictor Chang
Upstream commmit: https://github.com/unicode-org/icu/commit/05dc2ac924a0acd3f9a7ca65e8a6078f8f62d299 brkitr/ko.txt is created to use line_*_.cj.txt for both lw=phrase and lw != phrase cases for Korean. This is the simplest way to fix ICU-22119 taking advantage of the fact that ICU does not have a Korean dictionary so we don't have to worry about adding the list of Korean particles to keep them attached to the preceeding word. The downside is that it only works when the locale is ko or ja while it should work in any locale. Another is it makes ICU deviate from CSS3 by using the same CJ (conditonal Japanese) rules for Korean as well. However, CSS3 spec is wrong on that point and should be changed. See https://unicode-org.atlassian.net/browse/CLDR-4931 . (cherry picked from commit 05dc2ac924a0acd3f9a7ca65e8a6078f8f62d299) Bug: 244777768 Test: CtsIcuTestCases Test: CtsIcu4cTestCases Change-Id: Ic61256f4f30c2f1c2a5dab19384bbe726f3e8bd4 (cherry picked from commit 089645b23c69fffbbe8d2327585d5235b2df8f06)
2022-11-15Update icu4j/Android.bp because ICU 72 requires min java version of 1.8Victor Chang
Bug: 239910154 Test: n/a Change-Id: Icc196f7f5906ade9a4e65bc998ae31d2ab6b9e68
2022-11-15Android patch: Keep UnicodeSetIterator non-finalVictor Chang
Upstream commit: https://github.com/unicode-org/icu/commit/ae3f2ae7ca12ca316827b6973f7360bf3044f1e2 ICU 70 made UnicodeSetIterator final. However, it breaks the ABI stability on Android. Thus, we revert the change on Android. Bug: 202948901 Test: m droid Change-Id: Ic90eec6a98614b87ec5c7c6df9ec0792cdcec07a
2022-11-15Android patch: Keep the char version of 5 UCharacter methodsVictor Chang
Context: https://unicode-org.atlassian.net/browse/ICU-21655 ICU 70 widened the 5 UCharacter methods from char to int and removed the char version. Android has to be ABI stable and keep existing Android app working without re-compilation. Thus, we add the methods back as an Android patch. Bug: 202948901 Test: m droid Change-Id: I121679f7188e6b2f143b26546c00b32be21c1243
2022-11-15Android patch: Add options argument to CorePlatformApi ↵Victor Chang
DateTimePatternGenerator#getBestPattern Bug: 184018008 Change-Id: Ib83cff95638d5a8f0f02067f7a012c38be3ea08d
2022-11-15Android patch: Allow duplicated fields in DateTimePatternGeneratorVictor Chang
The original patch can be found at https://r.android.com/1458480 A skeleton, e.g. "jmma", is mapped into "ahmma" internally by #mapSkeletonMetacharacters, and thus the internal skeleton has duplicated fields "a". This is a regression when we moved the implementation of android.text.format.DateFormat#getBestPattern() from udatpg_getBestPattern in ICU4C to ICU4j DateTimePatternGenerator in the CL https://r.android.com/1355735. The expected pattern generated from skeleton of "jmma" is "h:mm a". Bug: 170233598 Change-Id: Ie30823c94c23c803e720fcf27fdc9e090f081b09
2022-11-15Android patch: Add @IntraCoreApi in DateFormatSymbols required by ↵Victor Chang
libcore.icu.LocaleData The original patch can be found: https://r.android.com/1250480 Bug: 138994281 Test: m droid Change-Id: Idca99bc73d29ebd77a08397ba78b81ff7e6fd139
2022-11-15Android patch: ICU4J loads ICU data without using the ↵Victor Chang
android.icu.impl.ICUBinary.dataPath property This CL alone does not remove the property yet, because it provides the replacement to set ICU4J data directories. The prebuilts and libcore need to be updated to remove the property. Pros: 1. The data directories are currently visible to app, but it's not intended, because the data files and file format are the internal implementation details. 2. having a recursive dependency between the ART module and the I18N module can be avoided, and the relationship simplified, by no longer relying on system properties to initialize ICU4J. Otherwise, ART modules needs to ask the I18N module where the files are, so it can set a system property, which tells the I18N module how to initialize. Instead, lazily generate the list of data directories when ICUBinary class is initialized. 3. Can remove the @IntraCoreApi TimeZoneDataFiles.generateIcuDataPath() in the CL after the ART prebuilts is updated. Cons: 1. Maintain a large patch in ICU4J. Note: - TimeZoneDataFiles is removed from timezone-host target because it's not used, and avoid new dependency on AndroidDataFiles. The original CL was introduced in Android S: https://r.android.com/1481478 The CL title was amended in ICU 69 upgrade. The CL is then updated in ICU 72 upgrade to reduce the patch. https://r.android.com/2111605 https://r.android.com/2292322 Bug: 171979766 Bug: 139480281 Test: ant core (using the upstream icu4j build system) Test: ./updatecldrdata.py Test: m droid cts Test: CtsIcuTestCases Change-Id: If128aec883b7efb157632d64b48aa0c7c2570b9e
2022-11-15Android patch: Fix localized quarters used in java.timeVictor Chang
Resource alias wasn't handled correctly in the old implementation in DateTimeTextProvider, for example, the wide standalone quarter for Q1 in the locale *agq* should be localized to "kɨbâ kɨ 1", instead of "Q1" provided by the ROOT resources. And it replaces the ICUResourceBundle usage with the new APIs, because ICUResourceBundle should not exposed as @IntraCoreApi. Bug: 139480281 Bug: 170717042 Test: ExtendedDateFormatSymbolsTest Test: atest CtsLibcoreOjTestCases Change-Id: I7d5de0a4cc5bf822ce53a41c295330fa72007f02
2022-11-15Android patch: Add DecimalFormatSymbols#getLocalizedPatternSeparator for ↵Victor Chang
libcore bridge The patch was modified in ICU 70 to increase the index. The patch for ICU 69 can be found at https://r.android.com/c/1802386/1 Bug: 144560585 Test: m droid Change-Id: I926b5e155b3ce951a7554d0ebde760715df3d85a
2022-11-14Android patch: JapaneseCalendar.CURRENT_ERA should not depend on system timeVictor Chang
Cherry-picked from http://r.android.com/954859 Test: n/a Change-Id: If2d05aca064a652957c5b6b5a9528547a6d914ff
2022-11-14Android patch: ICU-13295: Apostrophe in pattern bugVictor Chang
This is a temporary workaround until the issue has been fixed upstream: https://unicode-org.atlassian.net/browse/ICU-13295 This change was introduced in Android for ICU 59: https://android.googlesource.com/platform/external/icu/+/6f91254 https://android.googlesource.com/platform/external/icu/+/a765635 https://android.googlesource.com/platform/external/icu/+/c98207c (cherry picked from commit 9b607c4e580bebd23ad9c2873227c5de7afc5279) Test: n/a Change-Id: I531609fbac7ed92d4efd0b1144224be22769e34d
2022-11-14Android patch: CLDR data: Force default Gregorian calendar.Victor Chang
This change was introduced in Android by this patch: https://android.googlesource.com/platform/external/icu/+/b844b3e And then amended by the ICU 52 upgrade: https://android.googlesource.com/platform/external/icu/+/59d709d And then amended for ICU 55: https://android.googlesource.com/platform/external/icu/+/fafa8ad And then amended for ICU 58: https://android.googlesource.com/platform/external/icu/+/047edd2 And then amended for ICU 64, updating test expectaiotns for DateIntervalFormatTest and removing obsolete th_TH_TRADIOTIONAL locale from IBMCalendarTest since it is now equivalent to th_TH. Amended in ICU 69 by adding a new patch on ICU4C tests from Android S: https://r.android.com/1640799 Amended in ICU 70 to update the formatted string in dtfmtst.cpp The patch in ICU 69 can be found at https://r.android.com/1802266 Test: n/a Change-Id: Ib3c25e0d443ea2ad5d06eeb91c0f9d0a0261b792
2022-11-14Android patch: CLDR data: Add data for the XA/XB pseudo locales.Victor Chang
In ICU 68, icu4c/source/data/icu-config.xml is removed. This CL adds pseudo locales used in some tests and excludes them from com.ibm.icu.dev.test.format.DateTimeGeneratorTest#testJjMapping because they are not real locales. https://android.googlesource.com/platform/external/icu/+/338b5d35fdb86a9c4cb0ed59a67416693a0fe1e4 Test: n/a Change-Id: Ide8fb0413f28d5da03ae27a1ccf7ec8e8bcc1175
2022-11-14Android patch: CLDR data: Replace nb with no.Victor Chang
This change was introduced in Android by the ICU51.1 upgrade: https://android.googlesource.com/platform/external/icu/+/8393335 And then amended for ICU 57: https://android.googlesource.com/platform/external/icu/+/7dbcff1 And then amended for ICU 68: Amend the test data in cloctst.c These changes have been proposed, but not yet made, to CLDR: https://unicode.org/cldr/trac/ticket/2698 Test: n/a Change-Id: Ibbde334ce7d79d3285b4546a048957794032bd96
2022-11-14Android patch: Skip charset tests that fail with customized data.Victor Chang
Suppression of ICU4C test failures was added by the ICU 51 upgrade: https://android.googlesource.com/platform/external/icu/+/8393335 Suppression of ICU4J test failures was added for ICU 55: https://android.googlesource.com/platform/external/icu/+/3db47ed It was then partially reverted for the O release: https://android.googlesource.com/platform/external/icu/+/b48a108 (cherry picked from commit 630aab079a3a1393e8535367ec7ec86822646437) Test: n/a Change-Id: I472189b196fa1baedb7b05893c9d92618290b3b5