diff options
author | Fredrik Roubert <roubert@google.com> | 2015-03-03 18:14:45 +0100 |
---|---|---|
committer | Fredrik Roubert <roubert@google.com> | 2017-11-30 17:03:52 +0100 |
commit | 9c4531af5bc92e3800424d4fbdf7884477cbc47c (patch) | |
tree | 5d2845abc473fc896a91ded377b2edf87fbede3c | |
parent | cda8ae7f2268a9a643b1454df3bd88e9e3f56ee0 (diff) | |
download | icu-9c4531af5bc92e3800424d4fbdf7884477cbc47c.tar.gz |
Android patch: CLDR data: Force default Gregorian calendar.
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
Change-Id: Icbfe73f9e70daed84c1f2b65d211b91ff379210e
13 files changed, 89 insertions, 66 deletions
diff --git a/icu4c/source/data/locales/ar_SA.txt b/icu4c/source/data/locales/ar_SA.txt index 7ac537806..3edc1faed 100644 --- a/icu4c/source/data/locales/ar_SA.txt +++ b/icu4c/source/data/locales/ar_SA.txt @@ -11,7 +11,7 @@ ar_SA{ } Version{"2.1.37.6"} calendar{ - default{"islamic-umalqura"} + default{"gregorian"} // android-changed gregorian{ dayPeriod{ format{ diff --git a/icu4c/source/data/locales/fa.txt b/icu4c/source/data/locales/fa.txt index 19b848020..e93586703 100644 --- a/icu4c/source/data/locales/fa.txt +++ b/icu4c/source/data/locales/fa.txt @@ -373,7 +373,7 @@ fa{ } } } - default{"persian"} + default{"gregorian"} // android-changed ethiopic{ eras{ abbreviated{ diff --git a/icu4c/source/data/locales/ps.txt b/icu4c/source/data/locales/ps.txt index d8c3a6c6e..b836a9d75 100644 --- a/icu4c/source/data/locales/ps.txt +++ b/icu4c/source/data/locales/ps.txt @@ -232,7 +232,7 @@ ps{ } Version{"2.1.36.86"} calendar{ - default{"persian"} + default{"gregorian"} // android-changed generic{ DateTimePatterns{ "H:mm:ss (zzzz)", diff --git a/icu4c/source/data/locales/th.txt b/icu4c/source/data/locales/th.txt index 4794938a7..7bf2a8d11 100644 --- a/icu4c/source/data/locales/th.txt +++ b/icu4c/source/data/locales/th.txt @@ -901,7 +901,7 @@ th{ } } } - default{"buddhist"} + default{"gregorian"} // android-changed ethiopic{ monthNames{ format{ diff --git a/icu4c/source/data/misc/supplementalData.txt b/icu4c/source/data/misc/supplementalData.txt index 7433e3f43..0e08d4854 100644 --- a/icu4c/source/data/misc/supplementalData.txt +++ b/icu4c/source/data/misc/supplementalData.txt @@ -1633,8 +1633,10 @@ supplementalData:table(nofallback){ "islamic-tbla", } AF{ - "persian", +// BEGIN android-changed "gregorian", + "persian", +// END android-changed "islamic", "islamic-civil", "islamic-tbla", @@ -1711,8 +1713,10 @@ supplementalData:table(nofallback){ "islamic-tbla", } IR{ - "persian", +// BEGIN android-changed "gregorian", + "persian", +// END android-changed "islamic", "islamic-civil", "islamic-tbla", @@ -1792,8 +1796,10 @@ supplementalData:table(nofallback){ "islamic-tbla", } SA{ - "islamic-umalqura", +// BEGIN android-changed "gregorian", + "islamic-umalqura", +// END android-changed "islamic", "islamic-rgsa", } @@ -1820,8 +1826,10 @@ supplementalData:table(nofallback){ "islamic-tbla", } TH{ - "buddhist", +// BEGIN android-changed "gregorian", + "buddhist", +// END android-changed } TN{ "gregorian", diff --git a/icu4c/source/test/cintltst/ccaltst.c b/icu4c/source/test/cintltst/ccaltst.c index 7f03cb16a..e15cb8201 100644 --- a/icu4c/source/test/cintltst/ccaltst.c +++ b/icu4c/source/test/cintltst/ccaltst.c @@ -85,15 +85,15 @@ static const UCalGetTypeTest ucalGetTypeTests[] = { { "en_US", UCAL_GREGORIAN, "gregorian" }, { "ja_JP@calendar=japanese", UCAL_DEFAULT, "japanese" }, { "th_TH", UCAL_GREGORIAN, "gregorian" }, - { "th_TH", UCAL_DEFAULT, "buddhist" }, + { "th_TH", UCAL_DEFAULT, "gregorian" }, // android-changed { "th-TH-u-ca-gregory", UCAL_DEFAULT, "gregorian" }, { "ja_JP@calendar=japanese", UCAL_GREGORIAN, "gregorian" }, { "fr_CH", UCAL_DEFAULT, "gregorian" }, - { "fr_SA", UCAL_DEFAULT, "islamic-umalqura" }, - { "fr_CH@rg=sazzzz", UCAL_DEFAULT, "islamic-umalqura" }, + { "fr_SA", UCAL_DEFAULT, "gregorian" }, // android-changed + { "fr_CH@rg=sazzzz", UCAL_DEFAULT, "gregorian" }, // android-changed { "fr_CH@calendar=japanese;rg=sazzzz", UCAL_DEFAULT, "japanese" }, - { "fr_TH@rg=SA", UCAL_DEFAULT, "buddhist" }, /* ignore malformed rg tag */ - { "th@rg=SA", UCAL_DEFAULT, "buddhist" }, /* ignore malformed rg tag */ + { "fr_TH@rg=SA", UCAL_DEFAULT, "gregorian" }, /* ignore malformed rg tag */ // android-changed + { "th@rg=SA", UCAL_DEFAULT, "gregorian" }, /* ignore malformed rg tag */ // android-changed { "", UCAL_GREGORIAN, "gregorian" }, { NULL, UCAL_GREGORIAN, "gregorian" }, { NULL, 0, NULL } /* terminator */ @@ -1562,18 +1562,18 @@ static void TestGetKeywordValuesForLocale() { { "und", "gregorian", NULL, NULL, NULL, NULL }, { "en_US", "gregorian", NULL, NULL, NULL, NULL }, { "en_029", "gregorian", NULL, NULL, NULL, NULL }, - { "th_TH", "buddhist", "gregorian", NULL, NULL, NULL }, - { "und_TH", "buddhist", "gregorian", NULL, NULL, NULL }, - { "en_TH", "buddhist", "gregorian", NULL, NULL, NULL }, + { "th_TH", "gregorian", "buddhist", NULL, NULL, NULL }, // android-changed + { "und_TH", "gregorian", "buddhist", NULL, NULL, NULL }, // android-changed + { "en_TH", "gregorian", "buddhist", NULL, NULL, NULL }, // android-changed { "he_IL", "gregorian", "hebrew", "islamic", "islamic-civil", "islamic-tbla" }, { "ar_EG", "gregorian", "coptic", "islamic", "islamic-civil", "islamic-tbla" }, { "ja", "gregorian", "japanese", NULL, NULL, NULL }, { "ps_Guru_IN", "gregorian", "indian", NULL, NULL, NULL }, - { "th@calendar=gregorian", "buddhist", "gregorian", NULL, NULL, NULL }, + { "th@calendar=gregorian", "gregorian", "buddhist", NULL, NULL, NULL }, // android-changed { "en@calendar=islamic", "gregorian", NULL, NULL, NULL, NULL }, { "zh_TW", "gregorian", "roc", "chinese", NULL, NULL }, - { "ar_IR", "persian", "gregorian", "islamic", "islamic-civil", "islamic-tbla" }, - { "th@rg=SAZZZZ", "islamic-umalqura", "gregorian", "islamic", "islamic-rgsa", NULL }, + { "ar_IR", "gregorian", "persian", "islamic", "islamic-civil", "islamic-tbla" }, // android-changed + { "th@rg=SAZZZZ", "gregorian", "islamic-umalqura", "islamic", "islamic-rgsa", NULL }, // android-changed }; const int32_t EXPECTED_SIZE[PREFERRED_SIZE] = { 1, 1, 1, 1, 2, 2, 2, 5, 5, 2, 2, 2, 1, 3, 5, 4 }; UErrorCode status = U_ZERO_ERROR; diff --git a/icu4c/source/test/intltest/dtfmttst.cpp b/icu4c/source/test/intltest/dtfmttst.cpp index fd3a9f1fa..d381c23eb 100644 --- a/icu4c/source/test/intltest/dtfmttst.cpp +++ b/icu4c/source/test/intltest/dtfmttst.cpp @@ -4866,12 +4866,12 @@ void DateFormatTest::TestDFSCreateForLocaleNonGregorianLocale() { return; } - // Farsi should default to the persian calendar, not gregorian + // Android: All locales default to Gregorian calendar: int32_t count; const UnicodeString *months = sym->getShortMonths(count); // First persian month. - UnicodeString expected("\\u0641\\u0631\\u0648\\u0631\\u062f\\u06cc\\u0646"); + UnicodeString expected("\\u0698\\u0627\\u0646\\u0648\\u06CC\\u0647\\u0654"); // Android-changed assertEquals("", expected.unescape(), months[0]); } diff --git a/icu4c/source/test/intltest/dtifmtts.cpp b/icu4c/source/test/intltest/dtifmtts.cpp index f840b7d69..a4e45989a 100644 --- a/icu4c/source/test/intltest/dtifmtts.cpp +++ b/icu4c/source/test/intltest/dtifmtts.cpp @@ -998,48 +998,50 @@ void DateIntervalFormatTest::testFormat() { // Thai (default calendar buddhist) - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EEEEdMMMy", "\\u0E27\\u0E31\\u0E19\\u0E1E\\u0E38\\u0E18\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. 2550 \\u2013 \\u0E27\\u0E31\\u0E19\\u0E28\\u0E38\\u0E01\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. 2551", + // BEGIN ANDROID-changed. Default calendar in Android is Gregorian for th locale. + // "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EEEEdMMMy", "\\u0E27\\u0E31\\u0E19\\u0E1E\\u0E38\\u0E18\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. 2550 \\u2013 \\u0E27\\u0E31\\u0E19\\u0E28\\u0E38\\u0E01\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. 2551", - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "dMMM", "10 \\u0E15.\\u0E04. 2550 \\u2013 10 \\u0E15.\\u0E04. 2551", + // "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "dMMM", "10 \\u0E15.\\u0E04. 2550 \\u2013 10 \\u0E15.\\u0E04. 2551", - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "MMMy", "\\u0E15.\\u0E04. 2550 \\u2013 \\u0E15.\\u0E04. 2551", + // "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "MMMy", "\\u0E15.\\u0E04. 2550 \\u2013 \\u0E15.\\u0E04. 2551", - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EdMy", "\\u0E1E. 10/10/2550 \\u2013 \\u0E28. 10/10/2551", + // "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EdMy", "\\u0E1E. 10/10/2550 \\u2013 \\u0E28. 10/10/2551", - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "dMy", "10/10/2550 \\u2013 10/10/2551", + // "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "dMy", "10/10/2550 \\u2013 10/10/2551", - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "My", "10/2550 \\u2013 10/2551", + // "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "My", "10/2550 \\u2013 10/2551", - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EdM", "\\u0E1E. 10/10/2550 \\u2013 \\u0E28. 10/10/2551", + // "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EdM", "\\u0E1E. 10/10/2550 \\u2013 \\u0E28. 10/10/2551", - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "y", "2550\\u20132551", + // "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "y", "2550\\u20132551", - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "M", "10/2550 \\u2013 10/2551", + // "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "M", "10/2550 \\u2013 10/2551", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "EEEEdMMMy", "\\u0E27\\u0E31\\u0E19\\u0E1E\\u0E38\\u0E18\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. \\u2013 \\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48 10 \\u0E1E.\\u0E22. 2550", + // "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "EEEEdMMMy", "\\u0E27\\u0E31\\u0E19\\u0E1E\\u0E38\\u0E18\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. \\u2013 \\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48 10 \\u0E1E.\\u0E22. 2550", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "dMMM", "10 \\u0E15.\\u0E04. \\u2013 10 \\u0E1E.\\u0E22.", + // "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "dMMM", "10 \\u0E15.\\u0E04. \\u2013 10 \\u0E1E.\\u0E22.", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "MMMy", "\\u0E15.\\u0E04.\\u2013\\u0E1E.\\u0E22. 2550", + // "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "MMMy", "\\u0E15.\\u0E04.\\u2013\\u0E1E.\\u0E22. 2550", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "dM", "10/10 \\u2013 10/11", + // "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "dM", "10/10 \\u2013 10/11", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "My", "10/2550 \\u2013 11/2550", + // "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "My", "10/2550 \\u2013 11/2550", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "d", "10/10 \\u2013 10/11", + // "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "d", "10/10 \\u2013 10/11", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "y", "\\u0E1E.\\u0E28. 2550", + // "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "y", "\\u0E1E.\\u0E28. 2550", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "MMM", "\\u0E15.\\u0E04.\\u2013\\u0E1E.\\u0E22.", + // "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "MMM", "\\u0E15.\\u0E04.\\u2013\\u0E1E.\\u0E22.", + // END ANDROID-changed }; expect(DATA, UPRV_LENGTHOF(DATA)); } diff --git a/icu4c/source/test/intltest/incaltst.cpp b/icu4c/source/test/intltest/incaltst.cpp index 665460c24..1cd184a83 100644 --- a/icu4c/source/test/intltest/incaltst.cpp +++ b/icu4c/source/test/intltest/incaltst.cpp @@ -118,9 +118,9 @@ IntlCalendarTest::TestTypes() "buddhist", "gregorian", "gregorian", - "buddhist", - "buddhist", - "buddhist", + "gregorian", // android-changed. "buddhist", + "gregorian", // android-changed. "buddhist", + "gregorian", // android-changed. "buddhist", "gregorian", NULL }; diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/CalendarRegressionTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/CalendarRegressionTest.java index 062ac0bd7..bc3037a0f 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/CalendarRegressionTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/CalendarRegressionTest.java @@ -2150,32 +2150,36 @@ public class CalendarRegressionTest extends com.ibm.icu.dev.test.TestFmwk { Locale loc = new Locale("en", "TH"); Calendar cal = Calendar.getInstance(loc); String calType = cal.getType(); - if ( !calType.equals("buddhist")) { - errln("FAIL: Calendar type for en_TH should still be buddhist"); + // Android patch: Force default Gregorian calendar. + if ( !calType.equals("gregorian")) { + errln("FAIL: Calendar type for en_TH should still be gregorian"); } + // Android patch end. } @Test public void TestGetKeywordValuesForLocale(){ + // Android patch: Force default Gregorian calendar. final String[][] PREFERRED = { {"root", "gregorian"}, {"und", "gregorian"}, {"en_US", "gregorian"}, {"en_029", "gregorian"}, - {"th_TH", "buddhist", "gregorian"}, - {"und_TH", "buddhist", "gregorian"}, - {"en_TH", "buddhist", "gregorian"}, + {"th_TH", "gregorian", "buddhist"}, + {"und_TH", "gregorian", "buddhist"}, + {"en_TH", "gregorian", "buddhist"}, {"he_IL", "gregorian", "hebrew", "islamic", "islamic-civil", "islamic-tbla"}, {"ar_EG", "gregorian", "coptic", "islamic", "islamic-civil", "islamic-tbla"}, {"ja", "gregorian", "japanese"}, {"ps_Guru_IN", "gregorian", "indian"}, - {"th@calendar=gregorian", "buddhist", "gregorian"}, + {"th@calendar=gregorian", "gregorian", "buddhist"}, {"en@calendar=islamic", "gregorian"}, {"zh_TW", "gregorian", "roc", "chinese"}, - {"ar_IR", "persian", "gregorian", "islamic", "islamic-civil", "islamic-tbla"}, - {"th@rg=SAZZZZ", "islamic-umalqura", "gregorian", "islamic", "islamic-rgsa"}, + {"ar_IR", "gregorian", "persian", "islamic", "islamic-civil", "islamic-tbla"}, + {"th@rg=SAZZZZ", "gregorian", "islamic-umalqura", "islamic", "islamic-rgsa"}, }; + // Android patch end. String[] ALL = Calendar.getKeywordValuesForLocale("calendar", ULocale.getDefault(), false); HashSet ALLSET = new HashSet(); diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/IBMCalendarTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/IBMCalendarTest.java index 5b13c4947..bec3b0e16 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/IBMCalendarTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/IBMCalendarTest.java @@ -332,9 +332,11 @@ public class IBMCalendarTest extends CalendarTestFmwk { // Thai locale Calendar cal = Calendar.getInstance(new ULocale("th_TH")); String type = cal.getType(); - if (!type.equals("buddhist")) { - errln("FAIL: Buddhist calendar is not returned for locale " + cal.toString()); + // Android patch: Force default Gregorian calendar. + if (!type.equals("gregorian")) { + errln("FAIL: Gregorian calendar is not returned for locale " + cal.toString()); } + // Android patch end. } /** @@ -1102,6 +1104,7 @@ public class IBMCalendarTest extends CalendarTestFmwk { "th@rg=SA", // ignore malformed rg tag, use buddhist }; + // Android patch: Force default Gregorian calendar. String[] types = { "gregorian", "japanese", @@ -1113,17 +1116,18 @@ public class IBMCalendarTest extends CalendarTestFmwk { "buddhist", "gregorian", "gregorian", - "buddhist", - "buddhist", - "buddhist", + "gregorian", + "gregorian", + "gregorian", "gregorian", // iso8601 is a gregorian sub type "gregorian", - "islamic-umalqura", - "islamic-umalqura", + "gregorian", + "gregorian", "japanese", - "buddhist", - "buddhist", + "gregorian", + "gregorian", }; + // Android patch end. for (int i = 0; i < locs.length; i++) { Calendar cal = Calendar.getInstance(new ULocale(locs[i])); diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateIntervalFormatTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateIntervalFormatTest.java index ec22af2cb..cb275c752 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateIntervalFormatTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateIntervalFormatTest.java @@ -646,7 +646,9 @@ public class DateIntervalFormatTest extends TestFmwk { // Thai (default calendar buddhist) - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EEEEdMMMy", "\\u0E27\\u0E31\\u0E19\\u0E1E\\u0E38\\u0E18\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. 2550 \\u2013 \\u0E27\\u0E31\\u0E19\\u0E28\\u0E38\\u0E01\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. 2551", + // Android patch: Force default Gregorian calendar. + + "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EEEEdMMMy", "\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. 2550 \\u2013 \\u0E27\\u0E31\\u0E19\\u0E2D\\u0E32\\u0E17\\u0E34\\u0E15\\u0E22\\u0E4C\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. 2551", "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "dMMM", "10 \\u0E15.\\u0E04. 2550 \\u2013 10 \\u0E15.\\u0E04. 2551", @@ -654,14 +656,14 @@ public class DateIntervalFormatTest extends TestFmwk { "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "MMMy", "\\u0E15.\\u0E04. 2550 \\u2013 \\u0E15.\\u0E04. 2551", - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EdMy", "\\u0E1E. 10/10/2550 \\u2013 \\u0E28. 10/10/2551", + "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EdMy", "\\u0E2A. 10/10/2550 \\u2013 \\u0E2D\\u0E32. 10/10/2551", "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "dMy", "10/10/2550 \\u2013 10/10/2551", "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "My", "10/2550 \\u2013 10/2551", - "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EdM", "\\u0E1E. 10/10/2550 \\u2013 \\u0E28. 10/10/2551", + "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "EdM", "\\u0E2A. 10/10/2550 \\u2013 \\u0E2D\\u0E32. 10/10/2551", "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "y", "2550\\u20132551", @@ -669,7 +671,7 @@ public class DateIntervalFormatTest extends TestFmwk { "th", "2550 10 10 10:10:10", "2551 10 10 10:10:10", "M", "10/2550 \\u2013 10/2551", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "EEEEdMMMy", "\\u0E27\\u0E31\\u0E19\\u0E1E\\u0E38\\u0E18\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. \\u2013 \\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48 10 \\u0E1E.\\u0E22. 2550", + "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "EEEEdMMMy", "\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48 10 \\u0E15.\\u0E04. \\u2013 \\u0E27\\u0E31\\u0E19\\u0E2D\\u0E31\\u0E07\\u0E04\\u0E32\\u0E23\\u0E17\\u0E35\\u0E48 10 \\u0E1E.\\u0E22. 2550", "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "dMMM", "10 \\u0E15.\\u0E04. \\u2013 10 \\u0E1E.\\u0E22.", @@ -683,11 +685,12 @@ public class DateIntervalFormatTest extends TestFmwk { "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "d", "10/10 \\u2013 10/11", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "y", "\u0E1E.\u0E28. 2550", + "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "y", "2550", - "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "MMM", "\\u0E15.\\u0E04.\\u2013\\u0E1E.\\u0E22.", + "th", "2550 10 10 10:10:10", "2550 11 10 10:10:10", "MMM", "\\u0E15.\\u0E04. \\u2013 \\u0E1E.\\u0E22.", + // Android patch end. }; expect(DATA, DATA.length); } diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java index 28f77b7dc..6294f0ec2 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java @@ -754,6 +754,7 @@ public final class ICUResourceBundleTest extends TestFmwk { @Test public void TestFunctionalEquivalent(){ + // Android patch: Force default Gregorian calendar. String[] calCases = { // avail locale equiv "t", "en_US_POSIX", "en@calendar=gregorian", @@ -761,10 +762,11 @@ public final class ICUResourceBundleTest extends TestFmwk { "f", "ja_JP_TOKYO@calendar=japanese", "ja@calendar=japanese", "t", "sr@calendar=gregorian", "sr@calendar=gregorian", "t", "en", "en@calendar=gregorian", - "t", "th_TH", "th@calendar=buddhist", + "t", "th_TH", "th@calendar=gregorian", "t", "th_TH@calendar=gregorian", "th@calendar=gregorian", - "f", "th_TH_Bangkok", "th@calendar=buddhist", + "f", "th_TH_Bangkok", "th@calendar=gregorian", }; + // Android patch end. logln("Testing functional equivalents for calendar..."); getFunctionalEquivalentTestCases(ICUData.ICU_BASE_NAME, |