Problem with floating point display printf()

Bernhard Walle
Tue Nov 9 00:59:00 GMT 2004


we use newlib on a MVME162 board with following configuration:

    ./configure                         \
        --target=m68k-elf               \
        --program-prefix=m68k-elf-      \
        --prefix=%{prefix}              \
        --mandir=%{prefix}/share/man    \
        --infodir=%{prefix}/share/info  \
        --with-gnu-as                   \
        --with-gnu-ld                   \

The newlib version ist 1.12.0. The problem is that the decimal
separator printed out with printf() is a random character unless we 
call setlocale(LC_ALL, "C"). In my opinion this call should not be

Kind regards,
 Bernhard Walle

More information about the Newlib mailing list