[Bug 1783] New: printf %hhd is broken

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


https://bugs.busybox.net/show_bug.cgi?id=1783

           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 0.9.30.3, but the change that caused the problem
isn't actually in the stdio files.  It happens because uClibc is now built with
-funsigned-char.

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