diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 9140e72e..81a018c0 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -238,10 +238,8 @@ public: SPDLOG_TRY { // format to wmemory_buffer and convert to utf8 - fmt::wmemory_buffer wbuf; - // fmt::format_to(std::back_inserter(wbuf), fmt, std::forward(args)...); - fmt::detail::vformat_to(wbuf, fmt::to_string_view(fmt), fmt::make_format_args(args...), {}); + fmt::format_to(std::back_inserter(wbuf), fmt, std::forward(args)...); memory_buf_t buf; details::os::wstr_to_utf8buf(wstring_view_t(wbuf.data(), wbuf.size()), buf); details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size()));