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

CLDR Ticket #8843(accepted tools)

Opened 2 years ago

Last modified 5 months ago

Use DtdData sorting whenever possible.

Reported by: emmons Owned by: emmons
Component: other Data Locale:
Phase: rc Review:
Weeks: Data Xpath:
Xref:

Description

In the PathHeader.java sorting functions, we have redefined things like:

static String[] months = { "Jan", "Feb", "Mar",

"Apr", "May", "Jun",
"Jul", "Aug", "Sep",
"Oct", "Nov", "Dec",
"Und" };

static List<String> days = Arrays.asList("sun", "mon",

"tue", "wed", "thu",
"fri", "sat");

Would be much better and cleaner to just use the ordering as defined in DtdData, so that we don't need to have multiple copies floating around. For example, for days you can use:

static List<String> days = DtdData.dayValueOrder.getOrder();

instead.

There are quite a few other places where days = sun ... sat are redefined unnecessarily. Should probably clean those up as well.

Attachments

Change History

comment:1 Changed 2 years ago by emmons

  • Status changed from new to accepted
  • Component changed from unknown to other
  • Priority changed from assess to minor
  • Phase changed from dsub to rc
  • Milestone changed from UNSCH to 29
  • Owner changed from anybody to emmons
  • Type changed from unknown to tools

comment:2 Changed 23 months ago by emmons

  • Milestone changed from 29 to upcoming

Auto move of all 29 -> upcoming

comment:3 Changed 5 months ago by emmons

  • Milestone changed from upcoming to UNSCH
View

Add a comment

Modify Ticket

Action
as accepted
Author


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

 
Note: See TracTickets for help on using tickets.