globalize icon indicating copy to clipboard operation
globalize copied to clipboard

Matching to predefined formats

Open cahuja opened this issue 8 years ago • 1 comments

I am dealing with the following example. The locale is "da", and pattern is "yMMMMEEEEd".

Now, the resulting match for Globalize 1.3 is -> "EEEE d. MMMM y" The matching pattern for ICU4j is -> "EEEE 'den' d. MMMM y"

Looking at CLDR, the closest match for ICU4j is the predefined format "full": "EEEE 'den' d. MMMM y", which makes sense given the contents. However, Globalize is going with "yMMMEd": "E d. MMM y". Looking at matching skeletons, it's matching MMM with MMMM.

I don't see anything in TR-35 about matching to a predefined format, but it seems like this is what happens with ICU4j and iOS.

cahuja avatar Sep 01 '17 02:09 cahuja

I think this should be another CLDR bug.

cahuja avatar Sep 01 '17 02:09 cahuja