Subject: Re: locale ctype corrections
From: David Laight <>
List: tech-userlevel
Date: 03/08/2005 08:05:47
> In the architectural view, isw?xdigit(c) is not always true when
> isw?digit(c) is true, because SUSv3 defines 'digit' class and
> 'xdigit' class individually.  ctype.h would rathar be changed than
> iswctype.c.  The current ctype.h (derived from 4.3BSD) is not
> sufficient to conform to SUS and we need to overhaul ctype.h.

However, from a pragmatic point of view, if isdigit() is valid for
any byte values other than those of '0'..'9', or isxdigit() is valid
for anything except '0'..'9', 'a'..'f' and  'A'..'F', I can find you a lot
of broken programs.


David Laight: