cygwin gcc 2.95-2 printf bug

Christopher Faylor cgf@redhat.com
Mon Jan 29 05:12:00 GMT 2001


On Sun, Jan 28, 2001 at 09:46:09PM -0600, Mumit Khan wrote:
>On Sun, 28 Jan 2001, Gerald Jansen wrote:
>
>> There is a bug printing near-zero floating point numbers in 2.95.2.
>> 
>> main() {
>>   printf("[%5.2f] [%5.2f]\n",0.01,-0.01);
>>   printf("[%5.2f] [%5.2f]\n",0.001,-0.001);
>>   exit(0);
>> }
>> 
>> Produces:
>> [ 0.01] [-0.01]
>> [ 0] [-0]
>
>Thanks for reporting it. FYI, It's an issue with newlib (the library 
>used in Cygwin), not with gcc.
>
>Unfortunately, I don't have a solution for this ... it also happens
>on other newlib supported targets, such as powerpc-eabi using newlib
>1.9.0.

It should be fixed in the CVS repository on sources.redhat.com and in
later cygwin snapshots.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list