Show
Ignore:
Timestamp:
2003-07-24 11:40:50 (5 years ago)
Author:
Vincent Lefevre <vincent@…>
Branch:
HEAD
Message:

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).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • intl/loadmsgcat.c

    r2769 r3441  
    509509 
    510510          nplurals += 9; 
    511           while (*nplurals != '\0' && isspace (*nplurals)) 
     511          while (*nplurals != '\0' && isspace ((unsigned char) *nplurals)) 
    512512            ++nplurals; 
    513513#if defined HAVE_STRTOUL || defined _LIBC