summaryrefslogtreecommitdiffstats
path: root/gcc/intl/l10nflist.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/intl/l10nflist.c')
-rw-r--r--gcc/intl/l10nflist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/intl/l10nflist.c b/gcc/intl/l10nflist.c
index 533e94be889..3a1cbd06500 100644
--- a/gcc/intl/l10nflist.c
+++ b/gcc/intl/l10nflist.c
@@ -356,11 +356,11 @@ _nl_normalize_codeset (codeset, name_len)
size_t cnt;
for (cnt = 0; cnt < name_len; ++cnt)
- if (isalnum (codeset[cnt]))
+ if (isalnum ((unsigned char)codeset[cnt]))
{
++len;
- if (isalpha (codeset[cnt]))
+ if (isalpha ((unsigned char)codeset[cnt]))
only_digit = 0;
}
@@ -374,9 +374,9 @@ _nl_normalize_codeset (codeset, name_len)
wp = retval;
for (cnt = 0; cnt < name_len; ++cnt)
- if (isalpha (codeset[cnt]))
- *wp++ = tolower (codeset[cnt]);
- else if (isdigit (codeset[cnt]))
+ if (isalpha ((unsigned char)codeset[cnt]))
+ *wp++ = tolower ((unsigned char)codeset[cnt]);
+ else if (isdigit ((unsigned char)codeset[cnt]))
*wp++ = codeset[cnt];
*wp = '\0';
OpenPOWER on IntegriCloud