summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorJoachim Sauer <jsauer@google.com>2016-08-08 18:37:36 +0100
committerJoachim Sauer <jsauer@google.com>2016-08-09 11:18:15 +0100
commit7d60ae13c1300a8bcfb3aa41c773a9eb2e92c310 (patch)
treef9e74a1aa5884694f911dd5e8e26a1051ceeeb6a /include/ScopedJavaUnicodeString.h
parentfcca575b80c45d7812df3ac7e5d7b0c72544049e (diff)
Fix script selection in locales for TZ names.
Fix how we pass the locale ID to ICU4C. Previously we incorrectly passed the result of Locale.toString() (which is a hybrid, legacy-based value) instead of Locale.toLanguageTag() (which is well-specified by BCP 47 and what ICU4C actually expects). The only known case where this actually leads to an observable difference is when the Locale includes an explicit script identifier. For example the (BCP 47) locale id sr-Latn-RS would be represented by Locale.toString as "sr_RS_#Latn". When parsing that string in ICU4C, the last part will be ignored, as it's not well-formed. Bug: 30527513 Tested: libcore.java.text.SimpleDateFormatTest libcore.java.util.TimeZoneTest libcore.icu.TimeZoneNamesTest Change-Id: I9fbfdff8b896662d71576fe33f03eb660ecacaaf
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions