[Proj] Change in +prog=eqc behavior from 4.5.0 to 4.6.1

Orion Poplawski orion at cora.nwra.com
Thu Jul 16 16:53:57 EST 2009


On 07/16/2009 02:29 PM, Orion Poplawski wrote:
> Turns out that somewhere between glibc 2.9 and 2.10.1, atof/strtod for
> "5.3049894774131808e-315" starting setting errno to ERANGE.  Having
> errno set causes pj_init to abort.  I believe this is a bug in glibc
> (file here: http://sourceware.org/bugzilla/show_bug.cgi?id=10404).

Well, apparently the glibc maintainer doesn't agree with me (big 
surprise), so it seems that proj should be made so that it can handle 
errno getting set to ERANGE.  I'm not sure what the best way would be. 
I'd be tempted for now just to set errno to 0 after calling atof, but 
that is not very good form.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the Proj mailing list