[PATCH] ucrtbase: Implement some printf functions

Martin Storsjö martin at martin.st
Mon Oct 26 07:40:06 CDT 2015


On Mon, 26 Oct 2015, Piotr Caban wrote:

> Hi,
>
> On 10/20/15 10:50, Martin Storsjö wrote:
>> FWIW, this gives warnings about puts_clbk_str_c99_w being defined but
>> unused. It will be necessary later in case someone wants to implement
>> the wchar versions of the printf functions for ucrtbase, but what should
>> be done in the meantime? Just define this function somewhere else in
>> wcs.c instead?
> I don't think it's useful to add some kind of workaround in this case. The 
> function will be needed when e.g.
> __stdio_common_vfwprintf is implemented. The simplest solution is to include 
> implementation of wchar_t variant of the function in this patch.

Thanks, that's probably the easiest, especially for an initial 
implementation of it.

> Please note that your tests are failing in 64-bit wine:
> ../../../../wine_src/tools/runtest -q -P wine -T ../../.. -M ucrtbase.dll -p 
> ucrtbase_test.exe.so printf && touch printf.ok
> fixme:msvcrt:pf_printf_a multibyte characters printing not supported
> printf.c:167: Test failed: buf = containsmnull
>
> fixme:msvcrt:pf_printf_a multibyte characters printing not supported
> printf.c:194: Test failed: buf = containscnull
>
>
> Makefile:160: recipe for target 'printf.ok' failed
> make: *** [printf.ok] Error 2

Thanks, the varargs wrappers were missing __cdecl (which I didn't seen the 
need for before, when basing this on the msvcrt tests).

// Martin


More information about the wine-devel mailing list