flog: Use wide literals with wide chars

This solves the main part of (careful linebreak)
issue #5900.

I'm betting all the errors that do use narrow IO are broken, including
a bunch of asserts.
This commit is contained in:
Fabian Homborg 2019-05-28 22:39:47 +02:00
parent 7086ba43c8
commit 7c1a40fe86

View file

@ -43,9 +43,9 @@ void logger_t::log_fmt(const category_t &cat, const wchar_t *fmt, ...) {
va_list va;
va_start(va, fmt);
log1(cat.name);
log1(": ");
log1(L": ");
std::vfwprintf(file_, fmt, va);
log1('\n');
log1(L'\n');
va_end(va);
}