From 1db227496677bdddabc21cadaee63a1923bf3a3d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 1 Aug 2024 10:24:43 -0700 Subject: [PATCH] Use us if Unicode is disabled --- include/fmt/chrono.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 76af8c24..1fc3f1f5 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -649,7 +649,7 @@ FMT_CONSTEXPR inline auto get_units() -> const char* { if (std::is_same::value) return "fs"; if (std::is_same::value) return "ps"; if (std::is_same::value) return "ns"; - if (std::is_same::value) return "µs"; + if (std::is_same::value) return use_utf8() ? "µs" : "us"; if (std::is_same::value) return "ms"; if (std::is_same::value) return "cs"; if (std::is_same::value) return "ds";