[tex-k] [tlbuild] 2010 builds

Eddie Kohler kohler at cs.ucla.edu
Thu Jun 10 16:22:45 CEST 2010

For what it's worth, I have found it easiest (and most correct) to always cast 
the argument of any ctype function to unsigned char (unless I have an unsigned 
char already).  EOF is rarely encountered in practice, unless you read 
characters one at a time with fgetc(), which I doubt tex does.


On 06/10/2010 05:07 AM, Peter Breitenlohner wrote:
> On Thu, 10 Jun 2010, Jukka Salmi wrote:
>> Thus the arguments of those ctype functions need to be casted to
>> unsigned char, e.g. isspace((unsigned char)'\264'). I've done this for
>> utils/chktex/chktex-1.6.4/*.c (patch attached) and now the problem seems
>> to be fixed.
> Yes, but there is the added complication of cases such as
> char *Ptr;
> int Char;
> ....
> Char = *Ptr;
> ....
> if (isspace(Char)) {...}
> Regards
> Peter Breitenlohner <peb at mppmu.mpg.de>

More information about the tex-k mailing list