<i18n dev> [13] RFR 8209175: Handle 'B' character introduced in CLDR 33 JDK update for Burmese (my) locale
Nishit Jain
nishit.jain at oracle.com
Fri Feb 22 13:18:23 UTC 2019
Hi,
Please review the fix for JDK-8209175
Bug: https://bugs.openjdk.java.net/browse/JDK-8209175
Webrev: http://cr.openjdk.java.net/~nishjain/8209175/webrev.03/
Issue: In CLDR 33 update, 'B' character has been added in date time
patterns for Burmese locale, which is used to represent the day period.
This character is not supported in DateTimeFormatter or SimpleDateFormat
APIs, so an exception is thrown that an "unknown character is encountered"
Fix: A workaround is added in which 'B' character appearing in CLDR
date-time pattern is replaced with 'a' character and hence resolved with
am/pm strings. This is based on the LDML specification given for 'B'
character in which it falls back to 'a' character if it is not supported
by any locale.
Regards,
Nishit Jain
More information about the i18n-dev
mailing list