http://bugs.winehq.org/show_bug.cgi?id=31542
Bug #: 31542 Summary: msvcrt sprintf doesn't respect " " flag for E format. Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: qbasicmichael@gmail.com Classification: Unclassified
This problem was discovered by pitt at the QB64 forums: http://www.qb64.net/forum/index.php?topic=6886.0
For a format string of "% .6E", and a value of .00314159265359, sprintf is supposed to write " 3.141593E-003" to the buffer, and return 14. Instead, on Wine, it seems to be writing "3.141593E-003", and returning 13. It is omitting the leading space.
I am unable to test this, as I am not a Wine user myself. I am relying on information from pitt, and I do not Wine version. His Linux version is Fedora 16, but I don't know whether 32 or 64 bit.
For what it's worth, I tried it in ReactOS .3.14, and it worked correctly.
Could someone please verify this problem? If this has already been fixed in a new version, please say so.
Regards, Michael