From b90895412f46e18e5b17efdea2c8f79e7d7504b3 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 15 Dec 2022 09:54:16 -0800 Subject: [PATCH] Fix formatting of named arguments with locale --- include/fmt/format.h | 2 +- test/format-test.cc | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index c60e78a0fbc6..df7c54f05411 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -4306,7 +4306,7 @@ template ::value)> inline auto format(const Locale& loc, format_string fmt, T&&... args) -> std::string { - return vformat(loc, string_view(fmt), fmt::make_format_args(args...)); + return fmt::vformat(loc, string_view(fmt), fmt::make_format_args(args...)); } template