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

CLDR Ticket #11025(accepted tools)

Opened 5 months ago

Last modified 2 months ago

SupplementalMapper parses dates using the default locale

Reported by: roubert Owned by: mark
Component: util Data Locale:
Phase: dvet Review:
Weeks: Data Xpath:
Xref:

Description (last modified by roubert) (diff)

SupplementalMapper.getMilliSeconds() is supposed to parse dates in a standardized format.

But it currently calls the default constructor of SimpleDateFormat() which uses the default locale (in my own case set by the value of the LC_CTYPE environment variable) to determine the parsing behaviour.

Because of this, building ICU data from CLDR fails in every environment where the default locale doesn't parse like the root locale.

[cldr-build] java.lang.IllegalArgumentException: Could not parse date: -2636-01-01
[cldr-build] 	at org.unicode.cldr.icu.SupplementalMapper.getSeconds(SupplementalMapper.java:369)

The attached patch solves this problem by explicitly passing ULocale.ROOT to the SimpleDateFormat constructor.

GoogleIssue:76112294

Attachments

cldr-ticket-11025-patch-1.diff (1.2 KB) - added by roubert 5 months ago.

Change History

Changed 5 months ago by roubert

comment:1 Changed 5 months ago by roubert

  • Description modified (diff)

comment:2 Changed 4 months ago by mark

  • Keywords google added

comment:3 Changed 2 months ago by mark

  • Owner changed from anybody to mark
  • Phase changed from dsub to dvet
  • Priority changed from assess to major
  • Status changed from new to accepted
  • Milestone changed from UNSCH to 34
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.