printf float on arm
Hamish Moffatt
hamish at cloud.net.au
Sat Mar 3 10:42:03 UTC 2007
On Thu, Mar 01, 2007 at 02:53:51PM +0100, Philippe Ney wrote:
> I build a firmware (rootfs+kernel) for my target ARM PXA255 using
> buildroot.
>
> On this target, the printf of float number is broken. I mean
>
> printf("%12.3f\n", 123.456);
>
> Doesn't print : 123.456
> but : 123456
Yes I saw this problem also with 0.9.28.2 (and 0.9.27) when locale
support was compiled in. It works when locale support is excluded.
> uClibc-0.9.28
I used 0.9.27 and .28.2.
> uClibc-locale-030818
Same.
> busybox-1.2.1
Not relevant.
> gcc-4.0.3
I used 3.4.4.
> UCLIBC_HAS_LOCALE=y
Turn this off, it will fix it.
Hamish
--
Hamish Moffatt VK3SB <hamish at debian.org> <hamish at cloud.net.au>
More information about the uClibc
mailing list