From 8bd5f4f8833ec5a45834db2cddaeb8f5f5ffec6c Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 17 Nov 2021 01:04:27 +0200 Subject: [PATCH] Update test_daily_logger.cpp --- tests/test_daily_logger.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_daily_logger.cpp b/tests/test_daily_logger.cpp index 09f7c0e5..01b75d81 100644 --- a/tests/test_daily_logger.cpp +++ b/tests/test_daily_logger.cpp @@ -32,10 +32,11 @@ TEST_CASE("daily_logger with dateonly calculator", "[daily_logger]") #ifdef SPDLOG_WCHAR_FILENAMES spdlog::memory_buf_t buf; - spdlog::details::os::wstr_to_utf8buf(fmt::to_string(w), buf); # ifdef SPDLOG_USE_STD_FORMAT + spdlog::details::os::wstr_to_utf8buf(w, buf); auto &filename = buf; # else + spdlog::details::os::wstr_to_utf8buf(fmt::to_string(w), buf); auto filename = fmt::to_string(buf); # endif #else @@ -199,4 +200,4 @@ TEST_CASE("daily_logger rotate", "[daily_file_sink]") test_rotate(days_to_run, 10, 10); test_rotate(days_to_run, 11, 10); test_rotate(days_to_run, 20, 10); -} \ No newline at end of file +}