This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
cygwin-1.1.2: printf("%e") broken
- To: "cygwin at sourceware dot cygnus dot com" <cygwin at sourceware dot cygnus dot com>
- Subject: cygwin-1.1.2: printf("%e") broken
- From: "Ulrich Jakobus" <u dot jakobus at web dot de>
- Date: Fri, 09 Jun 2000 11:24:12 +0200
- Reply-To: "Ulrich Jakobus" <u dot jakobus at web dot de>
Hello,
having updated to cygwin-1.1.2, I now experience the following
problem that printf("%e") seems to be broken:
- very small C program printf_bug.c:
#include <stdio.h>
int main()
{
double d=0.0;
printf ("%f %e\n", d, d);
}
- compile as "gcc -o printf_bug printf_bug.c"
- executing the file printf_bug.exe using cygwin1.dll version
1.1.2(0.21/3/2) 2000-06-06 22:20 results in the corrupt output
0.000000 0. e+00
(in hex, the output of %e is 30 2e 00 8d b6 00 00 00 65 2b 30 30)
- if, however, I replace the file cygwin\bin\cygwin1.dll by the
version 1.1.0(0.17/3/2) 2000-03-01 00:15:19 then executing
the file printf_bug.exe (no recompilation, just cygwin1.dll
exchanged) results in the correct output
0.000000 0.000000e+00
(in hex, the output of %e is 30 2e 30 30 30 30 30 30 65 2b 30 30)
Any ideas?
Ulrich
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com