Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c033ce97 authored by Victor Chang's avatar Victor Chang
Browse files

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
parent 9138e506
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment