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:
parent
976da6717e
commit
56337beb11
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue