Subject: Re: lib/19638: isalpha (3) bug
To: Mike Cheponis <mac@Wireless.Com>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 01/03/2003 01:02:19
>...
>    Feeding a routine in libc a perfectly valid int should NOT cause the
>    libc routine to segfault.  That is Bad.
>
>Sugested fix:
>
>Add this c-equivalent line to   isalpha(c):
>
>  if( c < 0 || c > 0xff)return 0;  // Cannot be alphabetic
>  // this  "if" could  also be nicely encoded as a bit test against 0xffffff00
>
>  // Else, array bound is OK, index into our 256-byte array
>...

does this rudely prohibit unicode characters from being examined and
classified?

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."