msvcrt sprintf doesn't respect " " flag for E format.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
qbasicmichael
Newbie
Newbie
Posts: 1
Joined: Wed Aug 22, 2012 4:18 pm

msvcrt sprintf doesn't respect " " flag for E format.

Post by qbasicmichael »

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
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: msvcrt sprintf doesn't respect " " flag for E format.

Post by vitamin »

Please file a bug in bugzilla. Developers are not picking up problems from the forum.
Locked