Wine: several warnings in dlls/ntdll/tests/rtlstr.c

Francois Gouget fgouget at free.fr
Fri Dec 27 13:29:49 CST 2002


Sent a fix for wcscmp vs. lstrcmpW.


On Fri, 27 Dec 2002, Dan Kegel wrote:
[...]
> >   rtlstr.c:170: warning: int format, different type arg (arg 3)
> >   rtlstr.c:175: warning: int format, different type arg (arg 3)
> >   rtlstr.c:176: warning: int format, different type arg (arg 3)
> >   rtlstr.c:178: warning: int format, different type arg (arg 3)
> >   rtlstr.c:179: warning: int format, different type arg (arg 3)
> >   rtlstr.c:181: warning: int format, different type arg (arg 3)
> >   rtlstr.c:182: warning: int format, different type arg (arg 3)
> >   rtlstr.c:184: warning: int format, different type arg (arg 3)
> >   rtlstr.c:185: warning: int format, different type arg (arg 3)

'ok' uses the standard glibc printf functions and thus does not support
'%S' (unicode strings). Or if it does support '%S' it expects 32bit
Unicode chars rather than 16bit ones so it won't work.

Unfortunately, currently there is no good way of printing Unicode
strings in tests. We may need a function similar to debugstr_w...

-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
 Advice is what we ask for when we already know the answer but wish we didn't
                                 -- Eric Jong




More information about the wine-devel mailing list