diff options
author | Joachim Sauer <jsauer@google.com> | 2017-08-23 15:53:41 +0100 |
---|---|---|
committer | Joachim Sauer <jsauer@google.com> | 2017-08-31 14:32:06 +0100 |
commit | 19723c014d20372a55700940584dcf0be8ab1e7a (patch) | |
tree | 0ad875ef5ae7944375a13b19fe678de00f75a535 /annotations/generate_annotated_java_files.py | |
parent | d1feef77e7919d584aedb1936025dc09602940ec (diff) |
Test for RelativeDateTimeFormatter apostrophe bug.
Add a test for a bug in ICU RelativeDateTimeFormatter.combineDateAndTime
which led to single-quotes that were meant to quote characters appearing
in the output.
The relevant code used SimpleFormatterImpl for performance reasons
previously, but that class does not consider ' to be a quoting character
and just copies them into the output. In this patch we use MessageFormat
to handle the pattern instead which handles the single quote as desired.
See http://bugs.icu-project.org/trac/ticket/13295 and
http://unicode.org/cldr/trac/ticket/10321 for context and a potential
long-term fix.
Bug: 63745717
Test: libcore.icu.RelativeDateTimeFormatterTest
Change-Id: Iab0b902ab381ee1239d7304daed1cf53702c53f7
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions