Subject: Re: lib/19638: isalpha (3) bug
To: Andrew Brown <email@example.com>
From: Mike Cheponis <mac@Wireless.Com>
Date: 01/02/2003 22:26:50
On Fri, 3 Jan 2003, Andrew Brown wrote:
> > 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
It does. Sorry.
if( c & 0xffff0000) return 0; // Not a valid character
// Index into 65536-byte array now. Works for Unicode.