Hello,

I'm working on the Windows CE port of the VLC media player, and after
running into numerous portability problems with printf modifiers, we're
trying to use built-in mingw replacements, which seem to work fine.
However, %f specifiers don't work properly. For example, the following
program:

#include <stdio.h>

int main()
{
    FILE *f = fopen("\\printf.txt", "w");

    fprintf(f, "foo %f\n", 12.0);

    fclose(f);
    return 0;
}

compiled with

% arm-mingw32ce-gcc -D__USE_MINGW_ANSI_STDIO=1 printf.c

outputs "foo 0.000000" On other occasions, %f outputs kilobyte-long
numeric garbage instead of the right value.

I compiled my tool chain on my Linux x86_64 system, from the latest
revision of the SVN (which says mingw32 3.15.2); normal windows builds
using mingw32 are reported to work fine, which leads me to think that it
might be a cegcc specific issue.

(Also, is this mailing list open-post?)

Regards,

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to