From 7c1a40fe8660d32ef9d21d5d4b6b915a445be272 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 28 May 2019 22:39:47 +0200 Subject: [PATCH] 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. --- src/flog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flog.cpp b/src/flog.cpp index 9a9bfa3e1..b033ac0a5 100644 --- a/src/flog.cpp +++ b/src/flog.cpp @@ -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); }