Date: Tue, 30 Mar 2004 13:03:13 +0400 From: Andrey Chernov <ache@nagual.pp.ru> To: Tim Robbins <tjr@FreeBSD.ORG> Cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/locale isdigit.3 isxdigit.3 Message-ID: <20040330090311.GA45283@nagual.pp.ru> In-Reply-To: <20040330085717.GA49670@cat.robbins.dropbear.id.au> References: <200403300702.i2U724nk010851@repoman.freebsd.org> <20040330082936.GA43805@nagual.pp.ru> <20040330085717.GA49670@cat.robbins.dropbear.id.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 30, 2004 at 06:57:17PM +1000, Tim Robbins wrote: > My understanding is that we do have support for this in an obscure way: > isdigit() doesn't use the LC_CTYPE data file at all, and always returns > results from the C/POSIX locale (_DefaultRuneLocale). isnumber() uses It is as intendend - POSIX explicetely disallows any digits excepting '0'-'9' in sequence, the like about hex ones, and all our locales are ASCII-compatible. > the current locale (_CurrentRuneLocale). So anything listed in the > LC_CTYPE file as DIGIT will only affect isnumber(), not isdigit(). > I don't know whether this was an intended feature or not. I prefer to have a clear picture, i.e. left DIGIT as is, i.e. single flag (in case someone will test flags directly), and add another NUMBER flag (which will be always "| PUNCT"). -- Andrey Chernov | http://ache.pp.ru/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040330090311.GA45283>