delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/06/22:48:55

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3AF60D1B.5FBD6525@ece.gatech.edu>
Date: Sun, 06 May 2001 22:48:59 -0400
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: yky AT davinci DOT sci DOT fau DOT edu
CC: cygwin AT cygwin DOT com
Subject: Re: BUG in cygwin newest release?
References: <Pine DOT LNX DOT 4 DOT 30 DOT 0105062019480 DOT 1155-100000 AT davinci DOT sci DOT fau DOT edu>

Known.  A quick search of the cygwin mailing list archives would have
revealed that there is a problem in the newlib code used in 1.3.1. It is
fixed in CVS, and will be corrected in 1.3.2.

--Chuck


yky AT davinci DOT sci DOT fau DOT edu wrote:
> 
> Dear Friends:
> 
>         I downloaded the latest version of cygwin and try it out on my
> laptop computer. I tested a c code and the outcome seems rather strange.
> The code, which runs perfect in linux, is so simple that I am certain
> there is a bug somewhere in the new release. The test code does compile
> well, but the output is completely wrong. The following is the 12 line
> code and its input file, junk. Please let me know if anyone finds a fix.
> Thanks!
> 
> Yi-Kuo
> 
> ****The following is the test code **********
> 
> #include <stdio.h>
> #include <stdlib.h>
> #include <math.h>
> main()
> {
>   FILE *in;
>   double a,b,c;
> 
>   in = fopen("junk","r");
>   fscanf(in, "%lf ", &a);
>   fscanf(in,"%lf ", &b);
>   printf("a=%lf \t b= %lf \n", a,b);
> }
> 
> ****** end of code *********************
> 
> ****** Beginning of the file junk ***********
> 3.812341
> 4.3290123
> ****** end of the file junk ******************
> 
> ****** Beginning of the output ****************
> 3812341.000000
> 43290123.000000
> ***** End of the output ***********************
> 
> --
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019