Simplify locale handling

This commit is contained in:
Victor Zverovich
2025-08-31 08:27:04 -07:00
parent 69324379f2
commit 489fd7ca4b
9 changed files with 116 additions and 127 deletions

View File

@@ -379,7 +379,7 @@ TEST(locale_test, int_formatter) {
f.parse(parse_ctx);
auto buf = fmt::memory_buffer();
fmt::basic_format_context<fmt::appender, char> format_ctx(
fmt::appender(buf), {}, fmt::detail::locale_ref(loc));
fmt::appender(buf), {}, fmt::locale_ref(loc));
f.format(12345, format_ctx);
EXPECT_EQ(fmt::to_string(buf), "12,345");
}