public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/2509] New: glibc printf length modifier (h) bug when using integer conversion (i) @ 2006-04-04 4:32 vapier at gentoo dot org 2006-04-04 4:33 ` [Bug libc/2509] " vapier at gentoo dot org 2006-05-02 20:26 ` drepper at redhat dot com 0 siblings, 2 replies; 3+ messages in thread From: vapier at gentoo dot org @ 2006-04-04 4:32 UTC (permalink / raw) To: glibc-bugs as a user pointed out in a Gentoo bug, the statement: printf("%hi", 0xffff0010); yields -65520 instead of the expected truncated value 16 oddly enough, printf("%hu", 0xffff0010); works as expected tested Gentoo/glibc-2.4/amd64 -- Summary: glibc printf length modifier (h) bug when using integer conversion (i) Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: vapier at gentoo dot org CC: glibc-bugs at sources dot redhat dot com,toolchain at gentoo dot org http://sourceware.org/bugzilla/show_bug.cgi?id=2509 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/2509] glibc printf length modifier (h) bug when using integer conversion (i) 2006-04-04 4:32 [Bug libc/2509] New: glibc printf length modifier (h) bug when using integer conversion (i) vapier at gentoo dot org @ 2006-04-04 4:33 ` vapier at gentoo dot org 2006-05-02 20:26 ` drepper at redhat dot com 1 sibling, 0 replies; 3+ messages in thread From: vapier at gentoo dot org @ 2006-04-04 4:33 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From vapier at gentoo dot org 2006-04-04 04:33 ------- Created an attachment (id=950) --> (http://sourceware.org/bugzilla/attachment.cgi?id=950&action=view) glibc-test-integer-length-conversion.patch updates the stdio printf tests to test for %hhi and %hi -- http://sourceware.org/bugzilla/show_bug.cgi?id=2509 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/2509] glibc printf length modifier (h) bug when using integer conversion (i) 2006-04-04 4:32 [Bug libc/2509] New: glibc printf length modifier (h) bug when using integer conversion (i) vapier at gentoo dot org 2006-04-04 4:33 ` [Bug libc/2509] " vapier at gentoo dot org @ 2006-05-02 20:26 ` drepper at redhat dot com 1 sibling, 0 replies; 3+ messages in thread From: drepper at redhat dot com @ 2006-05-02 20:26 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From drepper at redhat dot com 2006-05-02 20:26 ------- I checked in a patch. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=2509 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-02 20:26 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-04-04 4:32 [Bug libc/2509] New: glibc printf length modifier (h) bug when using integer conversion (i) vapier at gentoo dot org 2006-04-04 4:33 ` [Bug libc/2509] " vapier at gentoo dot org 2006-05-02 20:26 ` drepper at redhat dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).