From 8619057224b8fa1e09d1738fdeac1a698bd4547b Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sun, 17 Sep 2023 19:30:39 +0200 Subject: [PATCH] Log: set locale for data output --- src/log.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/log.cpp b/src/log.cpp index 168bb7f..f20b9b0 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #ifdef _MSC_VER #pragma warning(disable : 4996) @@ -63,6 +64,8 @@ public: { set_main_thread(); + std::setlocale(LC_ALL, "en_001"); + m_logFile.open(log_file_name, std::ios::app | std::ios::binary); m_buf.resize(BUF_SIZE);