Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2002 11:35:30 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Chad David <davidc@acns.ab.ca>
Cc:        "Brian F. Feldman" <green@FreeBSD.ORG>, Bruce Evans <bde@zeta.org.au>, arch@FreeBSD.ORG
Subject:   Re: strtod()
Message-ID:  <20020127083529.GA13957@nagual.pp.ru>
In-Reply-To: <20020127003719.A38420@colnta.acns.ab.ca>
References:  <20020126162924.A7726@colnta.acns.ab.ca> <200201270453.g0R4rwi92912@green.bikeshed.org> <20020127070421.GA13415@nagual.pp.ru> <20020127003719.A38420@colnta.acns.ab.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 27, 2002 at 00:37:19 -0700, Chad David wrote:

> is the first call to localeconv() that causes errno to be updated when
> it calls strtol().  After that localeconv() takes a short cut.  So it

It is because localeconv() cache its result.

> isn't really strtod()'s problem, but localeconv()'s.

It looks like it is not localeconv() problem, but incorrect locale 
problem.

> The attached patch fixes this case, and probably others.  Comments?

Don't do that, fix locale instead. cnv() expected to be called on valid
numeric fields only.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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