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@winehq.org Reporter: steve@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
http://bugs.winehq.org/show_bug.cgi?id=35786
Stephen Kitt steve@sk2.org changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://bugs.debian.org/7415 | |92
http://bugs.winehq.org/show_bug.cgi?id=35786
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.debian.org/7415 | |92
http://bugs.winehq.org/show_bug.cgi?id=35786
--- Comment #1 from Stephen Kitt steve@sk2.org --- I forgot to mention this applies to Wine 1.6.2 and 1.7.14.
https://bugs.winehq.org/show_bug.cgi?id=35786
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
https://bugs.winehq.org/show_bug.cgi?id=35786
--- Comment #2 from Austin English austinenglish@gmail.com --- https://source.winehq.org/git/wine.git/commitdiff/2693ce1a253e5fe2f684d5805b...
please retest.
http://bugs.winehq.org/show_bug.cgi?id=35786
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |2693ce1a253e5fe2f684d5805b7 | |b7c12e6294b71 Status|UNCONFIRMED |RESOLVED CC| |piotr.caban@gmail.com Resolution|--- |FIXED
--- Comment #3 from Piotr Caban piotr.caban@gmail.com --- The attached test case works now. Marking as fixed.
https://bugs.winehq.org/show_bug.cgi?id=35786
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.16.