summaryrefslogtreecommitdiffstats
path: root/intl/l10nflist.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-08-14 11:49:07 +0000
committerBruno Haible <bruno@clisp.org>2001-08-14 11:49:07 +0000
commit8af193fbf37556ba3797f59cbdc78439f7c32224 (patch)
tree3ed31e9f5ada81562b37c7ae60d6e52ddf9befe8 /intl/l10nflist.c
parent68e84ecc9decc4630ba4d327d7e2383d3200f485 (diff)
downloadexternal_gettext-8af193fbf37556ba3797f59cbdc78439f7c32224.zip
external_gettext-8af193fbf37556ba3797f59cbdc78439f7c32224.tar.gz
external_gettext-8af193fbf37556ba3797f59cbdc78439f7c32224.tar.bz2
Correct use of <ctype.h> functions.
Diffstat (limited to 'intl/l10nflist.c')
-rw-r--r--intl/l10nflist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/intl/l10nflist.c b/intl/l10nflist.c
index 557253e..291a742 100644
--- a/intl/l10nflist.c
+++ b/intl/l10nflist.c
@@ -355,11 +355,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;
}
@@ -373,9 +373,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';