c/2762: scanf and sscanf failed to handle floating point values

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Mon May 7 22:11:00 GMT 2001


This is a known problem with cygwin 1.3.1.  It is fixed in develpment
snapshots, and will be fixed in cygwin 1.3.2

It is not a gcc problem.

> -----Original Message-----
> From:	hhuang@cs.columbia.edu [SMTP:hhuang@cs.columbia.edu]
> Sent:	Tuesday, 8 May 2001 2:45
> To:	nobody@gcc.gnu.org
> Cc:	gcc-prs@gcc.gnu.org; gcc-bugs@gcc.gnu.org
> Subject:	c/2762: scanf and sscanf failed to handle floating point
> values
> 
> 
> >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