Fix issue if fallback implementation of *wprintf functions causing some wide characters to fail printing

darcs-hash:20051012103952-ac50b-811bf950e5682fb5574b3c45b191ae5895846d66.gz
This commit is contained in:
axel 2005-10-12 20:39:52 +10:00
parent 4aa1b193c9
commit 226fef0255

View file

@ -296,7 +296,7 @@ static int vgwprintf( void (*writer)(wchar_t),
wchar_t *ss=0;
if( is_long )
{
ss = va_arg(va, void *);
ss = va_arg(va, wchar_t *);
}
else
{
@ -597,7 +597,7 @@ static FILE *fw_data;
static void fw_writer( wchar_t c )
{
putw( c, fw_data );
putwc( c, fw_data );
}
/*
@ -622,8 +622,7 @@ int fwprintf( FILE *f, const wchar_t *filter, ... )
int vwprintf( const wchar_t *filter, va_list va )
{
fw_data=stdout;
return vgwprintf( &fw_writer, filter, va );
return vfwprintf( stdout, filter, va );
}
int wprintf( const wchar_t *filter, ... )