From c123a72844b72a5d447dff46ac90be4c0d9c12df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A9=D0=B0=D0=BF=D0=BE=D0=B2?= Date: Fri, 11 Jun 2021 00:29:17 +0500 Subject: [PATCH] Fix set locale error in chrono formatter --- include/fmt/chrono.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index ad15be74..7507e32f 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -291,6 +291,7 @@ inline null<> gmtime_s(...) { return null<>(); } inline auto do_write(const std::tm& time, const std::locale& loc, char format, char modifier) -> std::string { auto&& os = std::ostringstream(); + os.imbue(loc); using iterator = std::ostreambuf_iterator; const auto& facet = std::use_facet>(loc); auto end = facet.put(os, os, ' ', &time, format, modifier);