Update LocaleUtils.filterByLanguage due to addLikelySubtags change
ULocale.addLikelySubtags is allowed to canonicalize subtags according to step 1 in the spec http://www.unicode.org/reports/tr35/#Likely_Subtags - "Replace any deprecated subtags with their canonical values using the <alias> data in supplemental metadata. Use the first value in the replacement list, if it exists." - In this case, ULocale.addLikelySubtag("sr-Latn-CS") returns "sr-Latn-RS". Thus, the algorithm of LocaleUtils.calculateMatchingSubScore needs to be updated to do what it tries to do. In addition, update DateIntervalFormatTest due to ICU 74 de locale data change Bug: 327164201 Test: atest FrameworksCoreTests:android.text.format Test: atest FrameworksServicesTests:com.android.server.inputmethod Test: atest CtsInputMethodTestCases Change-Id: I5902000994c8af8bdb7e26c99ae33b85cd5ccca4
Loading
Please register or sign in to comment