From 2cca4330ccb63251d8c7e1c4b635a635e6453b44 Mon Sep 17 00:00:00 2001 From: Charles Milette Date: Fri, 11 Nov 2022 22:42:18 -0500 Subject: [PATCH] Appender doesn't work on wide strings --- include/spdlog/logger.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 15572d76..1fafdabd 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -394,12 +394,8 @@ protected: { // format to wmemory_buffer and convert to utf8 wmemory_buf_t wbuf; -# ifdef SPDLOG_USE_STD_FORMAT fmt_lib::vformat_to( std::back_inserter(wbuf), fmt, fmt_lib::make_format_args(std::forward(args)...)); -# else - fmt::vformat_to(fmt::appender(wbuf), fmt, fmt::make_format_args(std::forward(args)...)); -# endif memory_buf_t buf; details::os::wstr_to_utf8buf(wstring_view_t(wbuf.data(), wbuf.size()), buf);