bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in truncate


From: Jim Meyering
Subject: Re: bug in truncate
Date: Thu, 07 May 2009 23:01:20 +0200

Eric Blake wrote:
> Cygwin recently improved its <ctype.h> to trigger gcc -Wall warnings on common
> abuses of ctype macros.  As a result, I now see this failure:
>
> truncate.c: In function `main':
> truncate.c:290: warning: subscript has type `char'
> truncate.c:312: warning: subscript has type `char'
>
> On platforms where char is signed, and in single-byte locales where 0xff is a
> space (yes, there are such locales), and where EOF is the traditional value 
> of -
> 1, then isspace((char)0xff) and isspace((unsigned char)0xff) give different
> results.  OK to apply this patch?

Nice.
Your fix looks fine, so go ahead.

Now I wish I'd waited a little longer before releasing 7.4.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]