parse-date: use to_uchar() instead of assignment.

Reported-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Influenced-by: gnulib 30784c4 Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: J William Piggott <elseifthen@gmx.com>
This commit is contained in:
J William Piggott 2017-06-05 20:28:26 -04:00
parent 07668cd1fa
commit bfbace763c
1 changed files with 2 additions and 4 deletions

View File

@ -990,10 +990,8 @@ static table const * lookup_word(parser_control const *pc, char *word)
int abbrev;
/* Make it uppercase. */
for (p = word; *p; p++) {
unsigned char ch = *p;
*p = c_toupper (ch);
}
for (p = word; *p; p++)
*p = c_toupper (to_uchar (*p));
for (tp = meridian_table; tp->name; tp++)
if (strcmp (word, tp->name) == 0)