[RFC] Refresh iswblank and iswspace (was Re: Update wctype functions to Unicode 5.2?)
Howland Craig D (Craig)
howland@LGSInnovations.com
Tue Feb 16 16:05:00 GMT 2010
Unfortunately, not quite so simple--but almost:
we'd need to check if the locale is exactly either "C" or "POSIX".
(It's a little annoying that POSIX allows either when there is no
apparent difference between them, but it's what they require.)
Yes, a <=0x7F check would seem appropriate (similar to the current
non-MB-capable check) when in "C"|"POSIX".
Craig
-----Original Message-----
From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org]
On Behalf Of Corinna Vinschen
Sent: Tuesday, February 16, 2010 7:24 AM
To: newlib@sourceware.org
Subject: Re: [RFC] Refresh iswblank and iswspace (was Re: Update wctype
functions to Unicode 5.2?)
On Feb 16 12:11, Corinna Vinschen wrote:
>
> Right. I don't worry for now, but we should fix that soon.
>
> I'd suggest to check for the locale being exactly "C" and if so, only
> return chars <= 0x7f. Every other locale is undefined and so allows
to
s/undefined/implementation-defined/
> report any character in the Unicode range.
Corinna
More information about the Newlib
mailing list