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
1 changed files with 3 additions and 1 deletions

View File

@ -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