[uClibc 0000845]: uClibc Floating Point Bug with all Print Functions
bugs at busybox.net
bugs at busybox.net
Fri Apr 21 16:30:13 UTC 2006
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=845
======================================================================
Reported By: james
Assigned To: uClibc
======================================================================
Project: uClibc
Issue ID: 845
Category: Architecture Specific
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 04-21-2006 09:30 PDT
Last Modified: 04-21-2006 09:30 PDT
======================================================================
Summary: uClibc Floating Point Bug with all Print Functions
Description:
We have identified a bug with the uClibc library used with an ARM core
processor. Floating point numbers under
http://busybox.net/bugs/view.php?id=43#11.0 with certain formating flags
do not print with printf. The one I am using is a 6 character width and 2
digit precision on a floating point number.
For example:
ret = printf("%6.2f\n", 15.0); /* prints " 15.00", ret = 7 */
ret = printf("%6.2f\n", 10.0); /* prints " 1", ret = 0, should be "
10.00"
*/
ret = printf("%6.2f\n", 5.0); /* prints "", ret = 0, should be " 5.00"
*/
This happens with the entire family of printf (sprintf, fprintf, etc)
that uses the vfprintf library calls.
A customer of ours has also identified this problem: We have the same
problem with all powers of 10 (100.0, 1000.0, 10000.0,
....).
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
04-21-06 09:30 james New Issue
04-21-06 09:30 james Status new => assigned
04-21-06 09:30 james Assigned To => uClibc
======================================================================
More information about the uClibc-cvs
mailing list