This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Problem with floating point display printf()
- From: Bernhard Walle <bwalle at fh-landshut dot de>
- To: newlib at sources dot redhat dot com
- Date: Tue, 9 Nov 2004 00:56:12 +0100
- Subject: Problem with floating point display printf()
Hello,
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 \
--enable-m68040
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
necessary.
Kind regards,
Bernhard Walle