commit | 1e43d8e8a06b2526f831bc7d9cd4f908cb434933 | [log] [tgz] |
---|---|---|
author | Victor Chang <vichang@google.com> | Mon Apr 15 19:06:15 2019 +0100 |
committer | Victor Chang <vichang@google.com> | Tue Apr 16 17:12:36 2019 +0100 |
tree | 40060846e04b6f582576613767090c92f7e6636f | |
parent | bcf20ef2c9a1d7806ede66aaf7f1fbcf6e4c9e64 [diff] |
Android Patch: Workaround U_MISSING_RESOURCE_ERROR regression with invalid locale This commit in ICU 63 causes libcore to crash with invalid Locale https://github.com/unicode-org/icu/commit/b12a927c9365bb38831afbf76fdd0999f8f33deb DateTimePatternGenerator::getCalendarTypeToUse pre-initializes the result to be DT_DateTimeGregorianTag (gregorian) in case of any error. Gregorian calendar is a good fallback since Android uses Gregorian calendar for all languages and regions, unless BCP 47 extensions e.g. *-u-ca-japanese Long-term fix is tracked at https://unicode-org.atlassian.net/browse/ICU-20558 Test: LocaleDataTest Test: StringTest Bug: 129070579 Merged-In: Icc98ea7bf94494b303a3ec246818b8e91d21a207 Change-Id: Icc98ea7bf94494b303a3ec246818b8e91d21a207 (cherry picked from commit 14493602686c43be21d1a656b018ee83f04fbf29)