date-parsing: don't lowercase date range strings

Allow them to be received unmolested in mu_date_parse_hdwmy
This commit is contained in:
djcb
2015-03-22 10:24:14 +02:00
parent dd26ad5e2d
commit 455582401e
2 changed files with 8 additions and 1 deletions

View File

@ -105,14 +105,19 @@ mu_date_parse_hdwmy (const char *nptr)
switch (endptr[0]) {
case 'h': /* hour */
case 'H':
delta = num * 60 * 60; break;
case 'd': /* day */
case 'D':
delta = num * 24 * 60 * 60; break;
case 'w': /* week */
case 'W':
delta = num * 7 * 24 * 60 * 60; break;
case 'm': /* month */
case 'M':
delta = num * 30 * 24 * 60 * 60; break;
case 'y': /* year */
case 'Y':
delta = num * 365 * 24 * 60 * 60; break;
default:
return never;

View File

@ -586,7 +586,9 @@ process_str (const char *str, gboolean xapian_esc, gboolean query_esc)
if (g_unichar_ismark(uc))
continue;
uc = g_unichar_tolower (uc);
if (!is_range_field)
uc = g_unichar_tolower (uc);
g_string_append_unichar (gstr, uc);
}