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

Glynn Clements glynn at gclements.plus.com
Thu Jul 16 18:43:12 EST 2009


Orion Poplawski wrote:

> 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),

C99 and POSIX permit atof() to set errno to ERANGE on underflow. C99
permits strtod() to set errno to ERANGE on underflow, while POSIX
requires it.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the Proj mailing list