Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-Id: <3AE9A1EA.EC0961C6@labs.mot.com>
Date: Fri, 27 Apr 2001 11:44:26 -0500
From: "Mark Schamberger" <Mark_Schamberger-A11451@email.mot.com>
Organization: Motorola Labs
X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: bug report:  sscanf problem with cygwin 1.3.1-1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have verified this problem on three different machines, each with the
complete "current" installation of cygwin.  (Windows NT4.0 sp6, Windows
2000 sp1)

When using sscanf to read double values from a string, the resulting
value is incorrect.  The following piece of code demonstrates the
problem:

>>>>>>>>>>>>>>>>>>>>>
#include <stdio.h>

int main(int argc, char *argv[])
{
        double d;

        sscanf("12.345","%lg",&d);
        printf("%lg\n",d);
}
>>>>>>>>>>>>>>>>>>>>>

Instead of the expected 12.345, it results in 12345 (it appears that
decimal points and exponents are not understood properly).

If I revert FROM cygwin 1.3.1-1 back TO cygwin 1.1.8-2, the bug
disappears.

Anyone else experience this problem?

Thanks, Mark Schamberger
mas@labs.mot.com




--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

