From 226fef0255d8ff7a238ee8922a16145d803614e6 Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 12 Oct 2005 20:39:52 +1000 Subject: [PATCH] Fix issue if fallback implementation of *wprintf functions causing some wide characters to fail printing darcs-hash:20051012103952-ac50b-811bf950e5682fb5574b3c45b191ae5895846d66.gz --- wutil.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wutil.c b/wutil.c index 3d4ccc0f0..4563f4073 100644 --- a/wutil.c +++ b/wutil.c @@ -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, ... )