From 56337beb1130d41747fc8585b5d8726c3ebd641f Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 8 Jan 2012 01:35:43 +0000 Subject: [PATCH] Use OutputDebugStringW rather than OutputDebugStringA in the windows debug logging so that unicode actually works Originally committed to SVN as r6242. --- aegisub/libaegisub/windows/log_win.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aegisub/libaegisub/windows/log_win.cpp b/aegisub/libaegisub/windows/log_win.cpp index e11a2f60f..82c20eedd 100644 --- a/aegisub/libaegisub/windows/log_win.cpp +++ b/aegisub/libaegisub/windows/log_win.cpp @@ -28,6 +28,8 @@ #endif #include "libaegisub/log.h" + +#include "libaegisub/charset_conv_win.h" #include "libaegisub/util.h" namespace agi { @@ -51,7 +53,7 @@ void EmitSTDOUT::log(SinkMessage *sm) { sm->func, sm->len, sm->message); - OutputDebugStringA(buff); + OutputDebugStringW(charset::ConvertW(buff).c_str()); } } // namespace log } // namespace agi