isspace() & i18n

Christopher Faylor cgf@redhat.com
Fri Jun 1 08:00:00 GMT 2001


On Fri, Jun 01, 2001 at 10:16:58AM +0400, egor duda wrote:
>Hi!
>
>Thursday, 31 May, 2001 Christopher Faylor cgf@redhat.com wrote:
>
>CF> This has been checked in.  It doesn't solve the larger issue of
>CF> if this is a newlib bug or not but I think that this is a correct
>CF> fix nonetheless.
>
>unfortunately, no. first, as isspace() wants int, this is equivalent
>to (int)(unsigned int)(char)(-33) == -33

Ah yes.  I remember this.  We probably need something like:

(unsigned) ((x) & 0xff)

cgf



More information about the Cygwin-developers mailing list