c/2762: scanf and sscanf failed to handle floating point values
hhuang@cs.columbia.edu
hhuang@cs.columbia.edu
Mon May 7 09:46:00 GMT 2001
>Number: 2762
>Category: c
>Synopsis: scanf and sscanf failed to handle floating point values
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 07 09:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Hao Huang
>Release: gcc version 2.95.3-4 (cygwin special)
>Organization:
>Environment:
Intel Pentium III 733
Windows 2000 Pro SP1 with cygwin 1.3.1
>Description:
scanf and sscanf failed to produce the correct floating point values. Here is the result from the code:
str: SIZE_SPACE: 13.5 11.6 1. 1.
size: 135.000000 116.000000 1.000000 1.000000
file: SIZE_SPACE: 13.5 11.6 1. 1.
size: -135.000000 116.000000 1.000000 NaN
c++: SIZE_SPACE: 13.5 11.6 1. 1.
size: 13.500000 11.600000 1.000000 1.000000
>How-To-Repeat:
compile the code and run it.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list