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

CLDR Ticket #10703(accepted spec)

Opened 4 months ago

Last modified 2 months ago

Clarify behavior of empty and identical negative subpattern

Reported by: shane Owned by: mark
Component: numbers Data Locale:
Phase: rc Review:
Weeks: Data Xpath:


Description (last modified by shane) (diff)

Follow-up on ICU ticket 13117.

The question is what should be the behavior with the patterns "0;" and "0;0". The relevant section from the spec (LDML) says,

When there is no explicit negative subpattern, an implicit negative subpattern is formed from the positive pattern with a prefixed - (ASCII U+002D HYPHEN-MINUS).

What should be the behavior? Here is what I think makes the most sense. In particular, if we are given a negative subpattern, we should respect it. Note: This is the behavior in ICU4J 59.

0 0; 0;0
15 15 15 15
-15 -15 -15 15

Here is the behavior of Excel (see screenshot). It produces an empty string for an empty pattern, which might be OK for us, too:

0 0; 0;0
15 15 15 15
-15 -15 <empty> 15


ICU4C and older versions of ICU4J put a negative sign on the last entry in the table. I think this is wrong because we are not respecting the user's explicit negative subpattern:

0 0; 0;0
15 15 15 15
-15 -15 -15 -15


Change History

comment:1 Changed 4 months ago by shane

  • Description modified (diff)

comment:2 Changed 3 months ago by mark

  • Owner changed from anybody to mark
  • Priority changed from assess to major
  • Xref set to 10207
  • Status changed from new to accepted
  • Milestone changed from UNSCH to 33

overtakes ticket:10207

We were not able to come to consensus, especially coming so close to the release, so will revisit next release.

comment:3 Changed 2 months ago by mark

  • Phase changed from dsub to rc

Add a comment

Modify Ticket

as accepted

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

Note: See TracTickets for help on using tickets.