From owner-cvs-all Tue Dec 4 11:58:18 2001 Delivered-To: cvs-all@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id D3A3337B50C; Tue, 4 Dec 2001 11:57:59 -0800 (PST) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id GAA19216; Wed, 5 Dec 2001 06:57:58 +1100 (EDT) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37640) with ESMTP id <01KBI0NDKZ68VLK6X6@cim.alcatel.com.au>; Wed, 5 Dec 2001 06:57:57 +1100 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.6/8.11.6) id fB4JvuJ28040; Wed, 05 Dec 2001 06:57:56 +1100 Content-return: prohibited Date: Wed, 05 Dec 2001 06:57:55 +1100 From: Peter Jeremy Subject: Re: cvs commit: src/lib/libc/stdlib strtoimax.c strtol.c strtoll.c strtoul.c strtoull.c strtoumax.c In-reply-to: <200112020915.fB29Fsk05134@freefall.freebsd.org>; from ache@FreeBSD.ORG on Sun, Dec 02, 2001 at 01:15:54AM -0800 To: "Andrey A. Chernov" Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Mail-Followup-To: "Andrey A. Chernov" , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Message-id: <20011205065755.C68607@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <200112020915.fB29Fsk05134@freefall.freebsd.org> 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 Sun, Dec 02, 2001 at 01:15:54AM -0800, Andrey A. Chernov wrote: >ache 2001/12/02 01:15:54 PST > > Modified files: > lib/libc/stdlib strtoimax.c strtol.c strtoll.c strtoul.c > strtoull.c strtoumax.c > Log: > Make it works for non ASCII compatible encodings too. > The only assumption left is that 'A'..'Z' 'a'..'z' both are contiguous AFAIK, the most widely used non-ASCII encoding is EBCDIC - in which 'A'..'Z' and 'a'..'z' are non-contiguous - 'z'-'a' == 40. (The low nybble only takes the values 1..9 - hence the "BCD" in the name). The new code is no worse than the old code in this respect, and it's unlikely that FreeBSD will ever be ported to an EBCDIC environment, but "works for non ASCII compatible encodings" may mislead someone hoping to borrow the code. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message