msvcrt: fix printf sign flags

Jesse Allen the3dfxdude at gmail.com
Tue Dec 20 11:56:32 CST 2005


There is a problem where the place holder flag ' ' (space) is
automatically overridden by '+'.  Therefore, '% d' is rebuilt as '%+d'
for libc.  This patch fixes that.  If both '+' and ' ' appear, then
'+' takes precedence, so silently accept ' ', always keeping '+', and
not stop conversion.  This patch will also help in the future when we
do our own printing of signed numbers.

Changes:
Fix the printf sign flags so that '+' doesn't always override ' '
space alone.  If they both appear, continue parsing and let '+' take
precedence.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pf_sign_flags_fix.diff
Type: application/octet-stream
Size: 1241 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051220/8f87be84/pf_sign_flags_fix.obj


More information about the wine-patches mailing list