From f2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 12 Dec 2019 23:26:04 +0800 Subject: ... --- include/cru/common/logger.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/cru/common') diff --git a/include/cru/common/logger.hpp b/include/cru/common/logger.hpp index 08765499..61d97422 100644 --- a/include/cru/common/logger.hpp +++ b/include/cru/common/logger.hpp @@ -28,6 +28,11 @@ class StdioLogSource : public virtual ILogSource { ~StdioLogSource() override = default; void Write(LogLevel level, const std::string_view& s) override { + // TODO: Emmm... Since it is buggy to use narrow char in UTF-8 on Windows. I + // think this implementation might be broken. (However, I didn't test it.) + // Maybe, I should detect Windows and use wide char (And I didn't test this + // either) or other more complicated implementation. Currently, I settled + // with this. if (level == LogLevel::Error) { std::cerr << s; } else { -- cgit v1.2.3