From 4b0191e76d9657bec33f76452a036ed6dd3efa48 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 28 Nov 2022 12:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Sound/voice.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Sound/voice.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Sound/voice.cxx b/src/Sound/voice.cxx index cfc82e8..18cd20d 100644 --- a/src/Sound/voice.cxx +++ b/src/Sound/voice.cxx @@ -199,7 +199,10 @@ FGFestivalVoice::~FGFestivalVoice() void FGVoiceMgr::FGVoice::pushMessage( const string & m) { - SG_LOG(SG_SOUND, SG_INFO, "FGVoice::pushMessage " << m ); + + int nwLen = MultiByteToWideChar(CP_UTF8, 0, m.c_str(), -1, NULL, 0); + + SG_LOG(SG_SOUND, SG_INFO, "FGVoice::pushMessage " << m.c_str() ); _msg.push(m); #if defined(ENABLE_THREADS)