assume log strings are utf-8, as they may contain dict letters

This commit is contained in:
ehouse 2009-11-15 15:46:57 +00:00
parent 7966f20829
commit 6d44cfa7fc

View file

@ -101,7 +101,7 @@ void
XP_LOGW( const XP_UCHAR* prefix, const wchar_t* arg ) XP_LOGW( const XP_UCHAR* prefix, const wchar_t* arg )
{ {
XP_UCHAR buf[512]; XP_UCHAR buf[512];
(void)WideCharToMultiByte( CP_ACP, 0, arg, -1, (void)WideCharToMultiByte( CP_UTF8, 0, arg, -1,
buf, sizeof(buf), NULL, NULL ); buf, sizeof(buf), NULL, NULL );
XP_LOGF( "%s: %s", prefix, buf ); XP_LOGF( "%s: %s", prefix, buf );
} }