This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: isspace() & i18n


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]