[tz] disclaimer removals

Ian Abbott abbotti at mev.co.uk
Thu Jun 26 14:53:44 UTC 2014


On 2014/06/26 01:51 PM, Christos Zoulas wrote:
> On Jun 25, 11:15pm, eggert at cs.ucla.edu (Paul Eggert) wrote:
> -- Subject: Re: [tz] disclaimer removals
> 
> | Thanks, I pushed that into github.
> 
> Please fix it so that it does not pass char into the isfoo() functions
> since they have undefined results for negative values other than -1.
> 
> http://pubs.opengroup.org/onlinepubs/009695399/functions/isalnum.html
> 
> An easy fix is to cast the value to unsigned char.

I believe you replied to the wrong thread, but isascii() should be
defined for all integer values:

http://pubs.opengroup.org/onlinepubs/009695399/functions/isascii.html

and the code only calls isalnum() if isascii() returns a non-zero value.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk>             )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587              )=-


More information about the tz mailing list