This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


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

Re: iswxxxxx/towxxxer and Unicode


Ulrich Drepper writes:

> > 1) iswcntrl(0x0000) now returns 1. Why did you change iswcntrl(0x0000)
> 
> U0000 is nothing.  Some testsuites dictate the current behavior.  If
> somebody collects a list of how other systems behave we can change it
> back.

U0000 is has a very particular meaning: it says "the C string ends
here". This makes it a control character.

All the systems I've tested consider U0000 a control character:

AIX 4.3:                 iscntrl(0) = 8,  iswcntrl(0) = 8
HP-UX 10.20, 11.00:      iscntrl(0) = 8,  iswcntrl(0) = 8
IRIX 6.2, 6.4, 6.5:      iscntrl(0) = 32, iswcntrl(0) = 32
glibc 2.1.x:             iscntrl(0) = 2,  iswcntrl(0) = 131072
OSF/1 4.0A:              iscntrl(0) = 8,  iswcntrl(0) = 8
Solaris 2.7:             iscntrl(0) = 32, iswcntrl(0) = 32
Windows NT:              iscntrl(0) = 32, iswcntrl(0) = 32
FreeBSD 3.3:             iscntrl(0) = 1,  iswcntrl lacking

Bruno

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