Use OutputDebugStringW rather than OutputDebugStringA in the windows debug logging so that unicode actually works

Originally committed to SVN as r6242.
This commit is contained in:
Thomas Goyne 2012-01-08 01:35:43 +00:00
parent 976da6717e
commit 56337beb11

View file

@ -28,6 +28,8 @@
#endif #endif
#include "libaegisub/log.h" #include "libaegisub/log.h"
#include "libaegisub/charset_conv_win.h"
#include "libaegisub/util.h" #include "libaegisub/util.h"
namespace agi { namespace agi {
@ -51,7 +53,7 @@ void EmitSTDOUT::log(SinkMessage *sm) {
sm->func, sm->func,
sm->len, sm->len,
sm->message); sm->message);
OutputDebugStringA(buff); OutputDebugStringW(charset::ConvertW(buff).c_str());
} }
} // namespace log } // namespace log
} // namespace agi } // namespace agi