summaryrefslogtreecommitdiffstats
path: root/intl/l10nflist.c
diff options
context:
space:
mode:
authorVincent Lefevre <vincent@vinc17.net>2003-07-24 18:40:50 +0000
committerVincent Lefevre <vincent@vinc17.net>2003-07-24 18:40:50 +0000
commit553ef91d6b72bf403c608b81d00f5112bae6da46 (patch)
tree3e37980522ca3dff6edbf237a7cc4ef7c3378147 /intl/l10nflist.c
parent8fe7e1b4e615dbbc655a96e292af24f045987282 (diff)
Some functions/macros like isspace take an int and require the
argument to have the value of an unsigned char (or EOF). Under Solaris, gcc complains when the argument is a char (as this is a possible bug, on platforms where char is signed, like Solaris). The attached patch fixes such problems (well, perhaps I've changed more than necessary, but this doesn't hurt).
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 533e94be..8e2605bc 100644
--- a/intl/l10nflist.c
+++ b/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';