This is a known issue with 1.3.1. You can check the details in the mail archives. This will be fixed in 1.3.2 or you can download a snapshot in the meantime. Larry Hall [EMAIL PROTECTED] RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX At 08:38 AM 5/6/2001, Ben Stewart wrote: >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 >[EMAIL PROTECTED] > > >Cygnus Win95/NT Configuration Diagnostics >Current System Time: Sun May 6 22:27:47 2001 > >WinNT Ver 5.0 build 2195 Service Pack 1 > >Path: /usr/local/bin > /usr/bin > /bin > /usr/bin > /cygdrive/c/PROGRA~1/Borland/Delphi5/Projects/Bpl > /cygdrive/c/PROGRA~1/Borland/Delphi5/Bin > /cygdrive/c/WINNT/system32 > /cygdrive/c/WINNT > /cygdrive/c/WINNT/System32/Wbem > /cygdrive/c/PROGRA~1/ULTRAE~1 > /cygdrive/c/WINDOWS > /cygdrive/c/WINDOWS/COMMAND > /cygdrive/c/PROGRA~1/BORLAND/CBUILD~1/BIN > /cygdrive/c/PROGRA~1/BORLAND/DELPHI5/BIN > /cygdrive/c/PROGRA~1/BORLAND/DELPHI5/PROJECTS/BPL > . > >SysDir: C:\WINNT\System32 >WinDir: C:\WINNT > >PWD = `/ftp/software/OS/cygwin/latest' >USER = `administrator' >MAKE_MODE = `unix' >HOME = `/cygdrive/c/Documents and Settings/Administrator' > >NUMBER_OF_PROCESSORS = `1' >PROMPT = `$P$G' >LOGONSERVER = `\\STARBUGGER' >OS2LIBPATH = `C:\WINNT\system32\os2\dll;' >COMSPEC = `C:\WINNT\system32\cmd.exe' >!C: = `C:\' >SYSTEMDRIVE = `C:' >HOSTNAME = `STARBUGGER' >PROCESSOR_REVISION = `0605' >PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' >COMPUTERNAME = `STARBUGGER' >WINDIR = `C:\WINNT' >USERPROFILE = `C:\Documents and Settings\Administrator' >PS1 = `[administrator@STARBUGGER] \w$ ' >BLASTER = `A220 I7 D1 T2' >PROGRAMFILES = `C:\Program Files' >MACHTYPE = `i686-pc-cygwin' >PROCESSOR_IDENTIFIER = `x86 Family 6 Model 6 Stepping 5, GenuineIntel' >OS = `Windows_NT' >OLDPWD = `/ftp/software/OS/cygwin' >PROCESSOR_ARCHITECTURE = `x86' >TEMP = `/cygdrive/c/DOCUME~1/ADMINI~2/LOCALS~1/Temp' >PROCESSOR_LEVEL = `6' >SNDSCAPE = `C:\WINDOWS' >SYSTEMROOT = `C:\WINNT' >HOMEDRIVE = `C:' >ALLUSERSPROFILE = `C:\Documents and Settings\All Users' >SHLVL = `1' >APPDATA = `C:\Documents and Settings\Administrator\Application Data' >COMMONPROGRAMFILES = `C:\Program Files\Common Files' >HOMEPATH = `\' >USERDOMAIN = `STARBUGGER' >USERNAME = `administrator' >SHELL = `/bin/sh' >HOSTTYPE = `i686' >OSTYPE = `cygwin' >TERM = `cygwin' >_ = `/usr/bin/cygcheck.exe' >TZ = `AUSEST-10AUSEDT-11,M10.5.0/2,M3.5.0/2' > >HKEY_CURRENT_USER\Software\Cygnus Solutions >HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin >HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 > (default) = `/cygdrive' > cygdrive flags = 0x00000020 >HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/ > (default) = `G:/cygwin' > flags = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin > (default) = `G:/cygwin/bin' > flags = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib > (default) = `G:/cygwin/lib' > flags = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 > (default) = `G:' > unix = `/g' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01 > (default) = `F:' > unix = `/f' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02 > (default) = `C:' > unix = `/' > fbinary = 0x00000000 > fsilent = 0x00000000 >HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start >Menu\Programs\Cygnus Solutions > (default) = (unsupported type) >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19 >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro >HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32 > >a: fd N/A N/A >c: hd NTFS 3610Mb 69% CP CS UN PA FC HP_PAVILION >f: hd NTFS 4503Mb 74% CP CS UN PA FC Ben's Crap >g: hd NTFS 39475Mb 88% CP CS UN PA FC FTPd >m: cd N/A N/A >s: cd N/A N/A >t: cd N/A N/A > >G:\cygwin\bin /usr/bin user textmode >G:\cygwin\lib /usr/lib user textmode >G:\cygwin / user textmode >c: /cygdrive/c user textmode,noumount >f: /cygdrive/f user textmode,noumount >g: /cygdrive/g user textmode,noumount > >Found: G:\cygwin\bin\bash.exe >Found: G:\cygwin\bin\cat.exe >Found: G:\cygwin\bin\cpp.exe >Found: G:\cygwin\bin\find.exe >Found: G:\cygwin\bin\gcc.exe >Found: G:\cygwin\bin\gdb.exe >Found: G:\cygwin\bin\ld.exe >Found: G:\cygwin\bin\ls.exe >Found: G:\cygwin\bin\make.exe >Found: c:\PROGRA~1\Borland\Delphi5\Bin\make.exe >Warning: G:\cygwin\bin\make.exe hides c:\PROGRA~1\Borland\Delphi5\Bin\make.exe >Found: G:\cygwin\bin\sh.exe > > 56k 2000/12/03 G:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0 > "cygbz21.0.dll" v0.0 ts=2000/11/21 10:53 > 82k 2001/01/21 G:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0 > "cygform5.dll" v0.0 ts=2001/1/22 7:39 > 18k 2000/10/23 G:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0 > "cyggdbm.dll" v0.0 ts=2000/10/23 12:26 > 17k 2001/01/07 G:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0 > "cyghistory4.dll" v0.0 ts=2001/1/7 15:34 > 14k 2000/10/23 G:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0 > "cygintl.dll" v0.0 ts=2000/10/24 5:02 > 81k 2000/12/05 G:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0 > "cygitcl30.dll" v0.0 ts=2000/11/26 12:43 > 35k 2000/12/05 G:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0 > "cygitk30.dll" v0.0 ts=2000/11/26 12:43 > 45k 2000/10/22 G:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0 > "cygjbig1.dll" v0.0 ts=2000/10/23 9:06 > 119k 2000/10/23 G:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0 > "cygjpeg6b.dll" v0.0 ts=2000/10/23 10:58 > 53k 2001/01/21 G:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0 > "cygmenu5.dll" v0.0 ts=2001/1/22 7:39 > 414k 2001/01/21 G:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0 > "cygncurses++5.dll" v0.0 ts=2001/1/22 7:40 > 299k 2001/01/21 G:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0 > "cygncurses5.dll" v0.0 ts=2001/1/22 7:38 > 34k 2001/01/21 G:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0 > "cygpanel5.dll" v0.0 ts=2001/1/22 7:38 > 163k 2001/02/03 G:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0 > "cygpng2.dll" v0.0 ts=2001/2/4 8:21 > 108k 2001/01/07 G:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0 > "cygreadline4.dll" v0.0 ts=2001/1/7 15:34 > 390k 2000/12/05 G:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 > "cygtcl80.dll" v0.0 ts=2000/11/26 12:39 > 5k 2000/12/05 G:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 > 10k 2000/12/05 G:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 > "cygtclreg80.dll" v0.0 ts=2000/11/26 12:39 > 243k 2000/10/23 G:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0 > "cygtiff3.dll" v0.0 ts=2000/10/23 11:14 > 623k 2000/12/05 G:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 > "cygtk80.dll" v0.0 ts=2000/11/26 12:43 > 41k 2000/11/20 G:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0 > "cygXpm-noX4.dll" v0.0 ts=2000/11/20 13:41 > 45k 2000/11/20 G:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0 > "cygXpm-X4.dll" v0.0 ts=2000/11/20 13:45 > 49k 2001/02/03 G:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 > "cygz.dll" v0.0 ts=2001/2/4 7:35 > 631k 2001/04/25 G:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=2001/4/25 10:01 > Cygwin DLL version info: > dll major: 1003 > dll minor: 1 > dll epoch: 19 > dll bad signal mask: 19005 > dll old termios: 5 > dll malloc env: 28 > api major: 0 > api minor: 38 > shared data: 3 > dll identifier: cygwin1 > mount registry: 2 > cygnus registry name: Cygnus Solutions > cygwin registry name: Cygwin > program options name: Program Options > cygwin mount registry name: mounts v2 > cygdrive flags: cygdrive flags > cygdrive prefix: cygdrive prefix > cygdrive default prefix: > build date: Tue Apr 24 20:01:02 EDT 2001 > shared id: cygwin1S3 > >Use -h to see help about each section >#include <stdio.h> > >int >main(int argc, char **argv) { > > char owner; > float w, s, e, n; > > while (scanf("%c %f %f %f %f\n", &owner, &w, &s, &e, &n) == 5) { > > printf("%c %6.1f %6.1f %6.1f %6.1f\n", owner, w, s, e, n); > } > > return(0); >} >A -130.0 80.0 -40.0 100.0 >A -120.0 50.0 -100.0 80.0 >A 70.0 -100.0 120.0 -60.0 >B -40.0 80.0 80.0 100.0 >B 30.0 10.0 80.0 80.0 >C 80.0 70.0 100.0 100.0 >-- >Want to unsubscribe from this list? >Check out: http://cygwin.com/ml/#unsubscribe-simple -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
Re: 1.3.1: gcc-2.95.3-4 bug with scanf() for floating-point numbers on Win2k
Larry Hall (RFK Partners, Inc) Mon, 07 May 2001 06:43:00 -0700
- 1.3.1: gcc-2.95.3-4 bug with scanf() for fl... Ben Stewart
- Re: 1.3.1: gcc-2.95.3-4 bug with scanf... Charles S. Wilson
- Re: 1.3.1: gcc-2.95.3-4 bug with s... bowman
- Re: 1.3.1: gcc-2.95.3-4 bug wi... Larry Hall (RFK Partners, Inc)
- Larry Hall (RFK Partners, Inc)