Re: sprintfW formatting in lib\wine\string.c

2007-05-11 Thread Alexandre Julliard
"Ann & Jason Edmeades" <[EMAIL PROTECTED]> writes: > Unfortunately, looking in the code to lib\wine\string.c, it just copies the > field and ignores justification or min/max width precisions for strings, and > as it is used all over the place there's also a concern of what would be > changed by fi

sprintfW formatting in lib\wine\string.c

2007-05-10 Thread Ann & Jason Edmeades
Whilst trying to convert cmd to Unicode, I've stumbled across a problem which I either need to work around or fix, and I am not sure which. WCHAR h[] = {'h','e','l','l','o','\0'}; WCHAR fmt[] = {':', '%', '1', '0','s',':','\0'}; char test[255]; WCHAR result[255]; sprintf(test, "'%10s'"