Date: Wed, 05 Dec 2001 06:57:55 +1100 From: Peter Jeremy <peter.jeremy@alcatel.com.au> To: "Andrey A. Chernov" <ache@FreeBSD.ORG> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/stdlib strtoimax.c strtol.c strtoll.c strtoul.c strtoull.c strtoumax.c Message-ID: <20011205065755.C68607@gsmx07.alcatel.com.au> In-Reply-To: <200112020915.fB29Fsk05134@freefall.freebsd.org>; from ache@FreeBSD.ORG on Sun, Dec 02, 2001 at 01:15:54AM -0800 References: <200112020915.fB29Fsk05134@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011205065755.C68607>