From owner-cvs-all@FreeBSD.ORG Tue Mar 30 00:55:33 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D88016A4F5; Tue, 30 Mar 2004 00:55:33 -0800 (PST) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 863EF43D67; Tue, 30 Mar 2004 00:55:32 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.204.41) by smtp01.syd.iprimus.net.au (7.0.024) id 402BA92701068C99; Tue, 30 Mar 2004 18:55:31 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 214A841BD; Tue, 30 Mar 2004 18:57:18 +1000 (EST) Date: Tue, 30 Mar 2004 18:57:17 +1000 From: Tim Robbins To: Andrey Chernov , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG Message-ID: <20040330085717.GA49670@cat.robbins.dropbear.id.au> References: <200403300702.i2U724nk010851@repoman.freebsd.org> <20040330082936.GA43805@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040330082936.GA43805@nagual.pp.ru> User-Agent: Mutt/1.4.1i Subject: Re: cvs commit: src/lib/libc/locale isdigit.3 isxdigit.3 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 08:55:34 -0000 On Tue, Mar 30, 2004 at 12:29:36PM +0400, Andrey Chernov wrote: > On Mon, Mar 29, 2004 at 11:02:04PM -0800, Tim J. Robbins wrote: > > Document the isnumber() and ishexnumber() functions, and explain how they > > differ (at least in theory) from isdigit() and isxdigit(). > > Currently we don't support number != digit flag in our mklocale(1) format. > I think it worth to mention this fact in the BUGS section (short term > solution) or add such flag (long term one). 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 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. But you're right - I'll add something to the manual page about the number != digit limitation. Tim