[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search

CLDR Ticket #10036(reviewing data)

Opened 4 months ago

Last modified 12 hours ago

Need availableFormats for every locale using flexible day periods B

Reported by: pedberg Owned by: pedberg
Component: datetime Data Locale:
Phase: dsub Review: mark
Weeks: Data Xpath:






In many locales, flexible day periods (pattern char B) do not necessarily occur in the same position in a time pattern that AM/PM markers do (pattern char a). We should have at least a basic time pattern using B in root in in most locales. This will enable the Survey Tool to properly display examples for flexible time periods.

This may depend on fixes to ICU DateTImePatternGenerator handling of B.


Change History

comment:1 Changed 3 months ago by mark

  • Owner changed from anybody to pedberg
  • Status changed from new to accepted
  • Milestone changed from UNSCH to 32

comment:2 Changed 3 weeks ago by pedberg

  • Xref changed from 9820 to 9820 10233

This depends on specifying behavior for B and b in skeletons per cldrbug 10233: and also making a corresponding ICU fix.

comment:3 Changed 12 hours ago by pedberg

  • Status changed from accepted to reviewing
  • Xref changed from 9820 10233 to 9820 10118 10233 10312
  • Review set to mark

Well, this turned out to be lot of work, mostly getting ICU to behave correctly with respect to day periods.

  1. In ICU DateTimePatternGenerator, I had to implement two pieces of functionality and other fixes:
  2. In ICU DayPeriodRules there was an infinite loop causing problems for CLDR, and described in http://bugs.icu-project.org/trac/ticket/13215.
  3. I have rolled fixed versions of both DateTimePatternGenerator and DayPeriodRules as overrides into CLDR, and filed x=cldrbug 10312: to remove them next time we update the ICU4J libraries with vesions that have the fixes.
  4. Then I added availableFormats items for skeletons Bh, Bhm, Bhms, EBhm, EBhms in root, en, and several locales in which dayPeriods typically go before h (because in these locales fallback to the root patterns would produce incorrect behavior).
  5. I updated coverage and PathHeader for these. Note that we need to add these (and other availableFormats time patterns) in gregorian, generic, and chinese, because there is no inheritance of availableFormats time patterns to root for generic and chinese.
  6. I also updated CheckDates.java to allow dayPeriods in the time formats.

Add a comment

Modify Ticket

as reviewing

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.