A test case is added that verifies that this works.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=644048
int i;
for (i = 0; i < G_N_ELEMENTS (months); i++) {
- if (!strncmp (*date_string, months[i], 3)) {
+ if (!g_ascii_strncasecmp (*date_string, months[i], 3)) {
date->month = i + 1;
*date_string += 3;
while (**date_string == ' ' || **date_string == '-')
"Sat, 6 Nov 2004 08:09:07 GMT",
"Sat, 06 Nov 2004 08:09:07",
"06 Nov 2004 08:09:07 GMT",
+ "SAT, 06 NOV 2004 08:09:07 +1000",
/* rfc850-date, and broken variants */
"Saturday, 06-Nov-04 08:09:07 GMT",