This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [RFC] Refresh iswblank and iswspace (was Re: Update wctype functions to Unicode 5.2?)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]