summaryrefslogtreecommitdiff
path: root/icu4j/main/tests
AgeCommit message (Collapse)Author
2020-01-16Cherry-pick: ICU-20934 Fix TZ test errorNikita Iashchenko
Per https://mm.icann.org/pipermail/tz-announce/2019-July/000056.html: Brazil has canceled DST and will stay on standard time indefinitely. This CL fixes tests for Brasil time zone which fail after upgrading ICU to 66.0.1. Test: atest CtsIcuTestCases:android.icu.dev.test.timezone.TimeZoneTest Change-Id: I814854a2114fde44e1cbdfb823889b075d1944a4
2020-01-02Android patch: CLDR data: Force default Gregorian calendar.Fredrik Roubert
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. Test: n/a Change-Id: I3f16825a16cc90857106ebec1138ffc2bb154715
2020-01-02Android patch: CLDR data: Add data for the XA/XB pseudo locales.Fredrik Roubert
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: I3b15004b8d1d764d67abe442000aeb2cbb969c97
2020-01-02Android patch: CLDR data: Replace nb with no.Fredrik Roubert
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 These changes have been proposed, but not yet made, to CLDR: https://unicode.org/cldr/trac/ticket/2698 (cherry picked from commit 1b61117d702a9952b708bcbb0ad4b9bad5deba66) Test: n/a Change-Id: I3e40b02f595cce59d0a8acd79e0ca19056704cfc
2020-01-02Android patch: Skip charset tests that fail with customized data.Fredrik Roubert
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: Ice98f45eb43c4382916ee37322f58afcc142bfc4
2020-01-02Android patch: Add exceptions for big5han and gb2312han in genrb.Fredrik Roubert
This change was introduced in Android by the ICU 53 upgrade: https://android.googlesource.com/platform/external/icu/+/fceb398 Suppression of ICU4J test errors was added for ICU 55: https://android.googlesource.com/platform/external/icu/+/7b913b1 (cherry picked from commit d9fc98087b091be81a9a50fbff9c0e22855d8dac) Updated from upstream some "avail" flags for commented-out cases Test: n/a Change-Id: I91b01664e26cca33005a176c4cea3820d71ed8f4
2020-01-02Android patch: Add --omitCollationRules to genrb.Fredrik Roubert
This change was introduced in Android by the ICU 54.1 upgrade: https://android.googlesource.com/platform/external/icu/+/f9878a2 Changing ICU4J test errors into warnings was introduced for ICU 55: https://android.googlesource.com/platform/external/icu/+/0543b35 Changing ICU4C test errors into log messages is new for ICU 57. https://android.googlesource.com/platform/external/icu/+/805390a In ICU 64 build system has changed, migrating from Makefile to python script when performing various data transformations, so that patch now patches BUILDRULES.py and adds '--omitCollationRules' option there. Test: n/a Change-Id: Ic454cc09164487aeadb1dcd421cbefe6efb08225
2020-01-02Update ICU source from 65.1 to 66.0.1Nikita Iashchenko
Copy the files with the following commands: 1. Obtain ICU sources: $ cd /tmp $ git clone --branch release-66-preview --depth 1 https://github.com/unicode-org/icu.git $ cd icu $ git lfs pull $ git lfs ls-files # ensure that all lfs-stored files are checked out 2. Update ICU: $ find icu4j/ -type f,d ! -regex ".*/\(Android.mk\|Android.bp\|adjust_icudt_path.mk\|liblayout-jarjar-rules.txt\)" -delete $ find icu4c/ -type f,d ! -regex ".*/\(Android.mk\|Android.bp\)" -delete $ cp -r /tmp/icu/icu4j/* ./icu4j/ $ cp -r /tmp/icu/icu4c/* ./icu4c/ $ git checkout HEAD -- icu4c/.gitignore icu4j/.gitignore $ git add -A $ git commit Bug: 135752089 Test: n/a Change-Id: I9f15e1aa87e7ae78dc9de609ec12f3e2cacb4f76
2019-12-19Android patch: CLDR data: Force default Gregorian calendar.Fredrik Roubert
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. Test: n/a Change-Id: I3f16825a16cc90857106ebec1138ffc2bb154715
2019-12-19Android patch: CLDR data: Replace nb with no.Fredrik Roubert
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 These changes have been proposed, but not yet made, to CLDR: https://unicode.org/cldr/trac/ticket/2698 (cherry picked from commit 1b61117d702a9952b708bcbb0ad4b9bad5deba66) Test: n/a Change-Id: I3e40b02f595cce59d0a8acd79e0ca19056704cfc
2019-12-19Android patch: Skip charset tests that fail with customized data.Fredrik Roubert
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: Ice98f45eb43c4382916ee37322f58afcc142bfc4
2019-12-19Android patch: Add exceptions for big5han and gb2312han in genrb.Fredrik Roubert
This change was introduced in Android by the ICU 53 upgrade: https://android.googlesource.com/platform/external/icu/+/fceb398 Suppression of ICU4J test errors was added for ICU 55: https://android.googlesource.com/platform/external/icu/+/7b913b1 (cherry picked from commit d9fc98087b091be81a9a50fbff9c0e22855d8dac) Updated from upstream some "avail" flags for commented-out cases Test: n/a Change-Id: I91b01664e26cca33005a176c4cea3820d71ed8f4
2019-12-19Android patch: Add --omitCollationRules to genrb.Fredrik Roubert
This change was introduced in Android by the ICU 54.1 upgrade: https://android.googlesource.com/platform/external/icu/+/f9878a2 Changing ICU4J test errors into warnings was introduced for ICU 55: https://android.googlesource.com/platform/external/icu/+/0543b35 Changing ICU4C test errors into log messages is new for ICU 57. https://android.googlesource.com/platform/external/icu/+/805390a In ICU 64 build system has changed, migrating from Makefile to python script when performing various data transformations, so that patch now patches BUILDRULES.py and adds '--omitCollationRules' option there. Test: n/a Change-Id: Ic454cc09164487aeadb1dcd421cbefe6efb08225
2019-12-19Android patch: CLDR data: Add data for the XA/XB pseudo locales.Fredrik Roubert
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: I3b15004b8d1d764d67abe442000aeb2cbb969c97
2019-12-18Update ICU source from 64.2 to 65.1Nikita Iashchenko
Copy the files with the following commands: 1. Obtain ICU sources: $ cd /tmp $ git clone --branch release-65-1 --depth 1 https://github.com/unicode-org/icu.git $ cd icu $ git lfs pull $ git lfs ls-files # ensure that all lfs-stored files are checked out 2. Update ICU: $ find icu4j/ -type f,d ! -regex ".*/\(Android.mk\|Android.bp\|adjust_icudt_path.mk\|liblayout-jarjar-rules.txt\)" -delete $ find icu4c/ -type f,d ! -regex ".*/\(Android.mk\|Android.bp\)" -delete $ cp -r /tmp/icu/icu4j/* ./icu4j/ $ cp -r /tmp/icu/icu4c/* ./icu4c/ $ git checkout HEAD -- icu4c/.gitignore icu4j/.gitignore $ git add -A $ git commit Bug: 138853239 Test: n/a Change-Id: I4c3bba15e34c35318b60b8e75c442620fde28f88
2019-08-07Merge remote-tracking branch 'aosp/icu64' into aosp/masterNikita Iashchenko
am: 747b4bb9d5 Change-Id: Ie0063244130f9d0bf6984bba20ebeed9ab22532e
2019-08-06Merge remote-tracking branch 'aosp/icu64' into aosp/masterNikita Iashchenko
Test: n/a Change-Id: I141f85b140d04ec896dd396ea0fa315d53f73d63
2019-07-24Cherry-pick: ICU-12431 Update test expectations in TestLocaleNamePackagingNikita Iashchenko
Upstream commit: https://github.com/unicode-org/icu/commit/78a4abc5ed5db9ddadb57dca0f5222e7639c124c These test expectations have been out-of-sync with the output that ICU4J actually generates for quite some time now. This change brings the expectations in sync with actual behaviour and makes the test pass. Test: n/a Change-Id: I9a1e1476ba709a5249d0131750f9dac539e33f5c
2019-07-24Android patch: CLDR data: Force default Gregorian calendar.Fredrik Roubert
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. Test: n/a Change-Id: I3f16825a16cc90857106ebec1138ffc2bb154715
2019-07-24Android patch: JapaneseCalendar.CURRENT_ERA should not depend on system timeVictor Chang
Cherry-picked from http://r.android.com/954859 Test: n/a Change-Id: I5264f92909778f7b945a8fe1ce46b801dcd4fc95
2019-07-24Android patch: Disable XLocaleMatcherTest.testPerf testVictor Chang
Disable the test temporarili to unblock presubmit since the test may not be stable. Bug: 118891283 Test: XLocaleMatcherTest.testPerf disabled Change-Id: Ib89d3570775a8bc1a9bb49a69a7f3a0d363e2431
2019-07-24Android patch: CLDR data: Add data for the XA/XB pseudo locales.Fredrik Roubert
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: I3b15004b8d1d764d67abe442000aeb2cbb969c97
2019-07-24Android patch: CLDR data: Replace nb with no.Fredrik Roubert
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 These changes have been proposed, but not yet made, to CLDR: https://unicode.org/cldr/trac/ticket/2698 (cherry picked from commit 1b61117d702a9952b708bcbb0ad4b9bad5deba66) Test: n/a Change-Id: I3e40b02f595cce59d0a8acd79e0ca19056704cfc
2019-07-24Android patch: Skip charset tests that fail with customized data.Fredrik Roubert
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: Ice98f45eb43c4382916ee37322f58afcc142bfc4
2019-07-24Android patch: Add exceptions for big5han and gb2312han in genrb.Fredrik Roubert
This change was introduced in Android by the ICU 53 upgrade: https://android.googlesource.com/platform/external/icu/+/fceb398 Suppression of ICU4J test errors was added for ICU 55: https://android.googlesource.com/platform/external/icu/+/7b913b1 (cherry picked from commit d9fc98087b091be81a9a50fbff9c0e22855d8dac) Updated from upstream some "avail" flags for commented-out cases Test: n/a Change-Id: I91b01664e26cca33005a176c4cea3820d71ed8f4
2019-07-24Android patch: Add --omitCollationRules to genrb.Fredrik Roubert
This change was introduced in Android by the ICU 54.1 upgrade: https://android.googlesource.com/platform/external/icu/+/f9878a2 Changing ICU4J test errors into warnings was introduced for ICU 55: https://android.googlesource.com/platform/external/icu/+/0543b35 Changing ICU4C test errors into log messages is new for ICU 57. https://android.googlesource.com/platform/external/icu/+/805390a Removed "--omitCollationRules" option from Makefile.in and add it in BUILDRULES.py in a separate CL in ICU 64.2. Test: n/a Change-Id: Ic454cc09164487aeadb1dcd421cbefe6efb08225
2019-07-22Copy ICU release-64-2 into aosp/icu64Nikita Iashchenko
Copy the files with the following commands: 1. Obtain ICU sources: $ cd /tmp $ git clone --branch release-64-2 --depth 1 https://github.com/unicode-org/icu.git $ cd icu $ git lfs pull $ git lfs ls-files # ensure that all lfs-stored files are checked out 2. Update ICU: $ find icu4j/ -type f,d ! -regex ".*/\(Android.mk\|Android.bp\|adjust_icudt_path.mk\|liblayout-jarjar-rules.txt\)" -delete $ find icu4c/ -type f,d ! -regex ".*/\(Android.mk\|Android.bp\)" -delete $ cp -r /tmp/icu/icu4j/* ./icu4j/ $ cp -r /tmp/icu/icu4c/* ./icu4c/ $ git checkout HEAD -- icu4c/.gitignore icu4j/.gitignore $ git add -A $ git commit Test: n/a Change-Id: I4712daffcb3d5bda562a411167387e6a099aa18b
2019-07-09DO NOT MERGE - Merge pie-platform-release (PPRL.190705.004) into masterXin Li
Bug: 136196576 Change-Id: I3546a49f902cc2942d690bc82419b31db78f6df5
2019-05-23Merge changes from topic "remove_DecimalFormat_ICU58_Android"vichang
* changes: Android Patch: Add compatibility parse mode in ICU4J DecimalFormat Remove Android patch: Copy DecimalFormat_ICU58 to Android specific path."
2019-05-15Remove Android patch: Copy DecimalFormat_ICU58 to Android specific path."Victor Chang
It remove the changes in https://android.googlesource.com/platform/external/icu/+/3f263708ba6390e7cbe41d5b664408079f648abf This change was introduced in Android for ICU 59: https://android.googlesource.com/platform/external/icu/+/ea5ab8c Bug: 69445420 Test: CtsIcuTestCases Merged-In: Iddcaa94c6949b5c6c6550d9a865f5e0e7ee0b4a8 Change-Id: I79d8fda3bc76be45acceeec38c6e4021e7de8ec5
2019-05-14DO NOT MERGE [CtsIcuTestCases] Old Android releases can optionally support ↵Victor Chang
the new Japanese era Added @Test to JapaneseTest#TestHeiseiToReiwa to run the test, the annotation was missing when the test was cherry-picked form upstream Bug: 131312444 Test: CtsIcuTestCases on old and new system image Merged-In: Iadc96b33bb11c0716fb9fedd158805b32cf1644f Change-Id: Iadc96b33bb11c0716fb9fedd158805b32cf1644f (cherry picked from commit e85c43713fd2a3feee99c5c6e32feaaea4cbb1f7)
2019-05-14DO NOT MERGE Cherry-pick: ICU-20536 Japanese era Reiwa support in ICU4J 60yumaoka
Cherry-pick https://github.com/unicode-org/icu/commit/223d4fb7e69b924db0e55e29162b8673bf1bb7ad Update android_icu4j by running tools/srcgen/generate_android_icu4j.sh Bug: 131312444 Test: CtsIcuTestCases Test: CtsLibcoreTestCases Test: CtsLibcoreOjTestCases Merged-In: I6c1190c364176977e6aed8fda18e63f4cc8df667 Merged-In: Ifb7ba4f2951a40ab0350eb1c2cf9f94cc89cba13 Change-Id: Ifb7ba4f2951a40ab0350eb1c2cf9f94cc89cba13 (cherry picked from commit d426057c4373a48f9f65e8781a74c9789e492d3d)
2019-05-03JapaneseCalendar.CURRENT_ERA should not depend on system timeVictor Chang
am: 35bf71735a Change-Id: Id11e9c39fc2520dc7fd3cd681c4936b3ba0be78d
2019-05-02JapaneseCalendar.CURRENT_ERA should not depend on system timeVictor Chang
JapaneseCalendar.CURRENT_ERA is static final int. Since ICU 63, CURRENT_ERA is computed based on the system time, via the API System.currentTimeMillis(). Before ICU 63 (Android P or below), it takes the latest era known by ICU. Android could initialize the value early during boot with an incorrect system time, and could result in undesired behavior in app, e.g. using the previous era Heisei in date format, even though the system time is set to a time in Reiwa era. This change set JapaneseCalendar.CURRENT_ERA to REIWA, which is the latest era known to ICU. Also fix android.icu.dev.test.calendar.EraRulesTest#testAPIs test failure during the era transition due to time zone inconsistency in the test. Note on JapaneseTest#Test3860, it passes on before and after era starts, even though it depends on CURRENT_ERA in the test. Bug: 131822957 Bug: 131766004 Test: CtsIcuTestCases when system time is to 30 Apr, 1 May(UTC) and 2 may Change-Id: I0b1bdba23ebf2c61d6627d920a9610cf47327405
2019-04-29Merge "Revert "Fix TimeZoneRegressionTest.TestJ5134 time period""Neil Fuller
am: a2c2903f40 Change-Id: Ic72f0cd8a25ab6190a002eb527f1329d94953d4e
2019-04-29Merge "Revert "Fix TimeZoneRegressionTest.TestJ5134 time period""Treehugger Robot
2019-04-26Revert "Fix TimeZoneRegressionTest.TestJ5134 time period"Neil Fuller
This reverts commit b4cccba85a389875080753e1a39772106f8537dc. Reason for revert: Android now uses 64-bit timestamps in java.util.TimeZone so should agree with ICU. Bug: 73719425 Bug: 130532697 Test: atest CtsIcuTestCases:android.icu.dev.test.timezone.TimeZoneRegressionTest Change-Id: Id970efce1f36ac16f3adcc0ab81fa5db642ebeac
2019-04-18Upgrade ICU from 63.1 up to 63.2Nikita Iashchenko
am: ac597cb5fc Change-Id: I28a0960d94b87ccf999e4e642b4b1fcaa66ba7c7
2019-04-18Merge changes from topic "new_japanese_era_reiwa"Nikita Iashchenko
* changes: Cherry-pick: ICU-20494 Fixes large magnitude exponents in number parsing Upgrade ICU from 63.1 up to 63.2
2019-04-16Upgrade ICU from 63.1 up to 63.2Nikita Iashchenko
Commits are taken from https://github.com/unicode-org/icu/commits/release-63-2. This includes cherry-picking the following upstream commits: 1. ICU-20208 uspoof.cpp function checkImpl should be static, regenerate urename.h (cherry picked from commit 9ec2c332c1c9156323944ea2b15c2b91952efae4) 2. ICU-20240 Fix Windows build failure in japancal.cpp (cherry picked from commit 3d86d24a682e8073f9c0073f63e208f2d9f58e0c) 4. ICU-20246 Fixing another integer overflow in number parsing. (cherry picked from commit 53d8c8f3d181d87a6aa925b449b51c4a2c922a51) 5. ICU-20255 revert to reflection for methods not yet in Android API level 21..23 (cherry picked from commit cee3c150ab648b6cee46fb377598c157824d3a61) 5. ICU-20536 Japanese era Reiwa support in ICU4C 63 6. ICU-20536 Japanese era Reiwa support in ICU4J 63 7. ICU-20536 ICU 63.2 release tasks + tzdata2019a The following commits should have been cherry-picked normally, but were skipped since they have already been merged: 1. ICU-20214 Fix namespace error on Cygwin (cherry picked from commit 31b89b54840361fdfc367ef02019b10424cdb75c) (merged in http://r.android.com/840834) 2. ICU-20209 Fix build failures on Windows with std::atomic not in enclosing namespace std (cherry picked from commit 5a34bfb1516a6719b5f470063c6be2f47446f0b2) (merged in http://r.android.com/840835) 3. ICU-20250 faster MutableCodePointTrie.build(): use a hashtable to find equal blocks in earlier parts of the compacted data & index arrays (cherry picked from commit 59006770ed0a11d197cf39cbee92e4c96ab00ed8) (merged in http://r.android.com/819398) 4. ICU-20250 make UnicodeSet(intprop=value) faster - fastpath for UnicodeSet.add(new last range) - fewer UnicodeSet memory allocations: initial internal list array, exponential array growth, allocate strings list/set only when first one is added - faster CodePointTrie.getRange(): fewer calls to filter function - revert UnicodeSet(intprop=value) from trie ranges to range starts + lookup - cache per-int-prop range starts: fewer lookups (cherry picked from commit 98f9170004c29388d756a8a283573164a7a26bef) (merged in http://r.android.com/829900) The following things were done to update all CLDR and ICU related files: * Run ./updateicudata.py after upgrading ICU to 63.2 * Run ./updatecldrdata.py after updating external/cldr * Update libandroidicu with ./tools/icu4c_srcgen/generate_libandroidicu.py * Update README.version to 63.2 * Generate android_icu4j sources with ./tools/srcgen/generate_android_icu4j.sh * Run system/timezone/update-tzdata.py, but no tzdata was changed Bug: 77858319 Test: ./tools/updatecldrdata.py Test: ./tools/updateicudata.py Test: ./tools/srcgen/generate_android_icu4j.sh Test: system/timezone/update-tzdata.py Test: m droid cts Test: cts-tradefed run cts-dev -m CtsLibcoreTestCases Test: cts-tradefed run cts-dev -m CtsLibcoreOjTestCases Test: cts-tradefed run cts-dev -m CtsIcuTestCases Change-Id: I6c1190c364176977e6aed8fda18e63f4cc8df667
2019-04-15Fix TimeZoneRegressionTest.TestJ5134 time periodNeil Fuller
am: b4cccba85a Change-Id: I15d92eac143e08419fa2b111e72d0d6b64c9b8d9
2019-04-15Fix TimeZoneRegressionTest.TestJ5134 time periodNeil Fuller
Fix TimeZoneRegressionTest time period to be within the int32 seconds range. The test compared ICU's TimeZone behavior with java.util.TimeZone for America/New_York for each day within a time period from 1900/01/01 to 1950/01/01. ICU appears to get offsets wrong before Integer.MIN_VALUE seconds (1901/12/13 20:45:52 GMT) due to incorrect zic data. Before this change the time period started at 1900/01/01 00:00:00 GMT (plus random millis). After this change the time period starts at Integer.MIN_VALUE instead (1901/12/13 20:45:52 GMT). Android / ICU are more likely to agree within this range as this is the range guaranteed correct by Android (for historic reasons). Android has recently updated to using zic version 2019a in aosp/master when generating the file behind its implementation of java.util.TimeZone. According to the readme.txt in ICU's tzcode dir, ICU 63 uses zic version 2014b. Android discovered a similar bug [1] when upgrading but it may not be the same one as ICU clearly uses >v1 of the Tzif format while Android remains on v1. [1] http://r.android.com/c/platform/libcore/+/929997/5/luni/src/test/java/libcore/java/util/TimeZoneTest.java#352 Bug: 130532697 Test: atest CtsIcuTestCases:android.icu.dev.test.timezone.TimeZoneRegressionTest Change-Id: I3bc09d0be0d39c7b827099c938e2c94a90074724
2019-03-11DO NOT MERGE - Merge PPRL.190305.001 into masterandroid-q-preview-1android-o-mr1-iot-release-1.0.10The Android Open Source Project
Bug: 127812889 Change-Id: I0d2081468576af5285eec5fb38a12d8fe58634f8
2019-01-30Cherry-pick: ICU-20350 Fix DecimalFormatSymbols.setPatternForCurrencySpacing ↵Nikita Iashcenko
affecting the value across instances According to the upstream bug https://unicode-org.atlassian.net/browse/ICU-20350?focusedCommentId=63142#comment-63142, it's a regression in ICU 58. Bug: 116850744 Test: CtsIcuTestCases Change-Id: Ida6b42dad692b7d31df94c788d43a6d41d728982
2018-11-02Android Patch: Disable XLocaleMatcherTest.testPerf testVictor Chang
Disable the test temporariliy to unblock presubmit, since the test may not be stable. Bug: 118891283 Test: XLocaleMatcherTest.testPerf disabled Change-Id: I8bed8305cf9d4c25467fd218bc994ccc512e64ad
2018-10-24Android patch: CLDR data: Force default Gregorian calendar.Fredrik Roubert
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 (cherry picked from commit a679be1263f240c4a3b8608b6b9acbc2d03f24cb) Change-Id: I4f335ea66d395d2f14605df9355ba02a0b760276
2018-10-24Android patch: CLDR data: Replace nb with no.Fredrik Roubert
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 These changes have been proposed, but not yet made, to CLDR: https://unicode.org/cldr/trac/ticket/2698 (cherry picked from commit 1b61117d702a9952b708bcbb0ad4b9bad5deba66) Change-Id: Ie15aa8bb0bcef33e533f35cb50adefa400b08cd7
2018-10-24Android patch: Skip charset tests that fail with customized data.Fredrik Roubert
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) Change-Id: Ifd6a0cb711496b840183a2fcde74a7679be1ed74
2018-10-24Android patch: Add exceptions for big5han and gb2312han in genrb.Fredrik Roubert
This change was introduced in Android by the ICU 53 upgrade: https://android.googlesource.com/platform/external/icu/+/fceb398 Suppression of ICU4J test errors was added for ICU 55: https://android.googlesource.com/platform/external/icu/+/7b913b1 (cherry picked from commit d9fc98087b091be81a9a50fbff9c0e22855d8dac) Change-Id: I10841c30f1bb9aa96db300006362bc0fb2f8bf3e
2018-10-24Android patch: Add --omitCollationRules to genrb.Fredrik Roubert
This change was introduced in Android by the ICU 54.1 upgrade: https://android.googlesource.com/platform/external/icu/+/f9878a2 Changing ICU4J test errors into warnings was introduced for ICU 55: https://android.googlesource.com/platform/external/icu/+/0543b35 Changing ICU4C test errors into log messages is new for ICU 57. (cherry picked from commit 751035aa4987a2246786f2a357b128f899df7922) Change-Id: I945ddd1aca36256e965836cc3cab9f3762e58f33