msvcrt: fix printf sign flags

Jesse Allen the3dfxdude at
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.

Fix the printf sign flags so that '+' doesn't always override ' '
space alone.  If they both appear, continue parsing and let '+' take
-------------- 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 :

More information about the wine-patches mailing list