Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2001 05:02:26 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Bill Fenner <fenner@research.att.com>
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>
In-Reply-To: <200111280153.RAA02549@windsor.research.att.com>
References:  <200111280125.RAA02228@windsor.research.att.com> <20011128013902.GC15066@nagual.pp.ru> <200111280153.RAA02549@windsor.research.att.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011128020226.GB15302>