mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
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:
parent
4aa1b193c9
commit
226fef0255
1 changed files with 3 additions and 4 deletions
7
wutil.c
7
wutil.c
|
@ -296,7 +296,7 @@ static int vgwprintf( void (*writer)(wchar_t),
|
||||||
wchar_t *ss=0;
|
wchar_t *ss=0;
|
||||||
if( is_long )
|
if( is_long )
|
||||||
{
|
{
|
||||||
ss = va_arg(va, void *);
|
ss = va_arg(va, wchar_t *);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -597,7 +597,7 @@ static FILE *fw_data;
|
||||||
|
|
||||||
static void fw_writer( wchar_t c )
|
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 )
|
int vwprintf( const wchar_t *filter, va_list va )
|
||||||
{
|
{
|
||||||
fw_data=stdout;
|
return vfwprintf( stdout, filter, va );
|
||||||
return vgwprintf( &fw_writer, filter, va );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int wprintf( const wchar_t *filter, ... )
|
int wprintf( const wchar_t *filter, ... )
|
||||||
|
|
Loading…
Reference in a new issue