[Bug 35786] New: Incorrect behaviour in printf with 0 value on "%#x"
http://bugs.winehq.org/show_bug.cgi?id=35786 Bug ID: 35786 Summary: Incorrect behaviour in printf with 0 value on "%#x" Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs(a)winehq.org Reporter: steve(a)sk2.org Created attachment 47780 --> http://bugs.winehq.org/attachment.cgi?id=47780 Test case Hi, This is forwarded from http://bugs.debian.org/741592 The printf documentation states that "%#x" prepends 0x for non-zero values only, but the Wine implementation prefixes 0x for zero too: $ cat t.c #include <stdio.h> int main() { int val = 0;/* zero */ fprintf(stdout, "value=%#x\n", val ); return 0; } $ i686-w64-mingw32-gcc t.c $ wine32 a.exe value=0x0 The resulting executable prints value=0 when run on Windows. Regards, Stephen -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=35786 Stephen Kitt <steve(a)sk2.org> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://bugs.debian.org/7415 | |92 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=35786 Jerome Leclanche <adys.wh(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.debian.org/7415 | |92 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=35786 --- Comment #1 from Stephen Kitt <steve(a)sk2.org> --- I forgot to mention this applies to Wine 1.6.2 and 1.7.14. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35786 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35786 --- Comment #2 from Austin English <austinenglish(a)gmail.com> --- https://source.winehq.org/git/wine.git/commitdiff/2693ce1a253e5fe2f684d5805b... please retest. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=35786 Piotr Caban <piotr.caban(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |2693ce1a253e5fe2f684d5805b7 | |b7c12e6294b71 Status|UNCONFIRMED |RESOLVED CC| |piotr.caban(a)gmail.com Resolution|--- |FIXED --- Comment #3 from Piotr Caban <piotr.caban(a)gmail.com> --- The attached test case works now. Marking as fixed. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35786 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #4 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.7.16. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org