g_date_set_parse: Parses "September" in Polish incorrectly
@rluzynski
Submitted by Rafał Lużyński Link to original bug (#793550)
Description
Created attachment 368490 Test case: format September and try to parse it back
See the test case. The reason is that the algorithm tries to find a month whose full or abbreviated name is a substring of the parsed string. So in Polish, "September" is "wrzesień"; as "August" is "sierpień", abbreviated as "sie", it detects that "sie" is a substring of "wrzesień" ("wrzeSIEń") and reports the month as August.
The algorithm should match all months and report the one which is the longest matching substring.
Somebody please fix it, I'm out of time.
Attachment 368490, "Test case: format September and try to parse it back":
test_september.c
Version: 2.55.x