summaryrefslogtreecommitdiff
path: root/include/ScopedJavaUnicodeString.h
diff options
context:
space:
mode:
authorFredrik Roubert <roubert@google.com>2016-03-03 23:33:56 +0100
committerFredrik Roubert <roubert@google.com>2016-06-02 13:08:11 +0200
commit248a0f76282e826c8ab6fec23d14eb2b16203c9d (patch)
tree4b48a202e1b0bf3e2a6557532e556f60d6ca1086 /include/ScopedJavaUnicodeString.h
parentd01fdc5268b60bbf530d593ea9a0748fc5d1e6b0 (diff)
Correct traversal of the UResourceBundle data structure in ICU.
At this point in the code, the UResourceBundle can either be a string or an array of strings. In case there is an array, Android currently only cares about the first string of that array, the rest of the array is used by ICU for additional data ignored by Android. Example: The "DateTimePatterns" UResourceBundle can contain arrays where the first string is a pattern and the second string is a numbering system override for that pattern: DateTimePatterns{ "h:mm:ss a zzzz", "h:mm:ss a z", "h:mm:ss a", "h:mm a", "EEEE, d MMMM y G", "d MMMM y G", "d MMM y G", { "d/M/yy GGGGG", "M=romanlow", } "{1} {0}", "{1} {0}", "{1} {0}", "{1} {0}", "{1} {0}", } Without this patch, Android would get an empty pattern string. With this patch, Android will get the pattern string while ignoring the numbering system override. (Note that Android will still not output a date as specified: In the example above, the month will be written with decimal digits rather than roman numerals.) Bug: 26397197 Change-Id: I72ecdaad19facfecd65e329ee0ba0959f6c6565c
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions