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 know his Linux or Wine versions.
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
msvcrt sprintf doesn't respect " " flag for E format.
-
- Newbie
- Posts: 1
- Joined: Wed Aug 22, 2012 4:18 pm
Re: msvcrt sprintf doesn't respect " " flag for E format.
Please file a bug in bugzilla. Developers are not picking up problems from the forum.