From owner-cvs-all Tue Nov 27 18: 2:38 2001 Delivered-To: cvs-all@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 2A02837B417; Tue, 27 Nov 2001 18:02:29 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id fAS22Qr15563; Wed, 28 Nov 2001 05:02:26 +0300 (MSK) (envelope-from ache) Date: Wed, 28 Nov 2001 05:02:26 +0300 From: "Andrey A. Chernov" To: Bill Fenner Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org, bde@freebsd.org Subject: Re: cvs commit: src/lib/libc/stdlib strtol.c strtoll.c strtoq.c strtoul.c strtoull.c strtouq.c Message-ID: <20011128020226.GB15302@nagual.pp.ru> References: <200111280125.RAA02228@windsor.research.att.com> <20011128013902.GC15066@nagual.pp.ru> <200111280153.RAA02549@windsor.research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200111280153.RAA02549@windsor.research.att.com> User-Agent: Mutt/1.3.23.2i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Nov 27, 2001 at 17:53:24 -0800, Bill Fenner wrote: > > >No, there is isalpha() check there. > > Good point. So what's the point of converting base 37 when you > don't have an alphabet that can represent base 37? i.e. for what > value of buf does strtol(buf, &eptr, 37) return 36? There are national digits can appearse up to 255, f.e. > The 36 is not an arbitrary restriction; it's the size of the > alphabet that strto* is willing to accept. Please either > expand the alphabet or put back the restriction. It is bde's idea to revert it back to BSD traditional behaviour (not check base), personally I agree with any variant. See my answer to jhb about that. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message