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:
parent
07668cd1fa
commit
bfbace763c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue