[Bug 31542] New: msvcrt sprintf doesn't respect " " flag for E format.

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Aug 23 17:27:40 CDT 2012


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 at winehq.org
        ReportedBy: qbasicmichael at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.



More information about the wine-bugs mailing list