We're updating the issue view to help you get more done. 

Date Parsing fails with abbreviated month "mei."

Description

Date parsing fails when an abbreviated month name is the wide month name + "."

This makes the abbreviated from longer than the wide form.

We have patched a few locales to be this way, including nl.

Here are some resulting test failures from TestDateFormatRoundTrip:

1 2 3 4 FAIL: fmt->parse failed, error U_ILLEGAL_ARGUMENT_ERROR, str=28 mei. 1817 06:00:00 in locale: nl FAIL: fmt->parse failed, error U_ILLEGAL_ARGUMENT_ERROR, str=27 mei. 0421 12:46 in locale: nl FAIL: fmt->parse failed, error U_ILLEGAL_ARGUMENT_ERROR, str=7-mei.-1511 21:42 in locale: nl_BE FAIL: fmt->parse failed, error U_ILLEGAL_ARGUMENT_ERROR, str=7 mei. 3143 17:10 in locale: nl_NL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 monthNames{ format{ abbreviated{ "jan.", "feb.", "mrt.", "apr.", "mei.", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "dec.", } wide{ "januari", "februari", "maart", "april", "mei", ...

Note: TestDateFormatRoundTrip is based on random data, and will not always find this problem.

Status

Assignee

Yoshito Umaoka

Reporter

Andy Heninger

Labels

None

Reviewer

None

Time Needed

None

Start date

None

Components

Priority

assess