1.3.1: gcc-2.95.3-4 bug with scanf() for floating-point numbers on Win2k
Ben Stewart
ben.stewart@whsc.vic.edu.au
Mon May 7 05:37:00 GMT 2001
I'm using Cygwin 1.3.1, with all packages "stable" as at April 27th
2001, including gcc 2.95.3-4.
Using the attached code sample and data, when compiled, results in
incorrect data. I have tried this code fragment on Linux gcc 2.95
(debian), and works fine. My lecturers have also tried it under SunOS,
working fine.
---- <output> ----
[administrator@STARBUGGER] //f/myc$ ./broken-gcc-code <
broken-gcc-code-data.txt
A 130.0 80.0 40.0 100.0
A -120.0 50.0 100.0 NaN
A -70.0 NaN NaN NaN
B -40.0 NaN NaN NaN
B -30.0 NaN NaN NaN
C -80.0 NaN NaN NaN
[administrator@STARBUGGER] //f/myc$
---- </output> ----
If you have any suggestions, please email me.
Thanks in advance
/. .\
--------ooo----O----ooo--------
Ben Stewart
Intranet Administrator
Wheelers Hill Secondary College
Mobile 0402 089 240
Phone +61 3 9561 5811 ext 247
Fax +61 3 9561 8227
ben.stewart@whsc.vic.edu.au
More information about the Cygwin
mailing list