[Bug 1783] New: printf %hhd is broken

bugzilla at busybox.net bugzilla at busybox.net
Wed May 19 01:22:22 UTC 2010


           Summary: printf %hhd is broken
           Product: uClibc
           Version: 0.9.31
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: stdio
        AssignedTo: unassigned at uclibc.org
        ReportedBy: michael at talamasca.ocis.net
                CC: uclibc-cvs at uclibc.org
   Estimated Hours: 0.0

Created attachment 1753
  --> https://bugs.busybox.net/attachment.cgi?id=1753
Patch to fix printf hhd conversion

The %hhd printf conversion is treated identically to %hhu.  This causes "255"
to be output instead of "-1".

This misbehavior causes a spurious test failure in the MPFR library.

This is a regression from, but the change that caused the problem
isn't actually in the stdio files.  It happens because uClibc is now built with

Attached is a fix that changes a critical cast from "(char)" to "(signed
char)", restoring the original semantics.

Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the uClibc-cvs mailing list