From a5492fead01514ece5914592f3141b02f8af6aad Mon Sep 17 00:00:00 2001 From: Alex Guteniev Date: Tue, 4 Jan 2022 16:43:03 +0200 Subject: [PATCH] Okay, let's do this Windows-only --- include/fmt/color.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fmt/color.h b/include/fmt/color.h index 06b80911..4571597c 100644 --- a/include/fmt/color.h +++ b/include/fmt/color.h @@ -530,9 +530,11 @@ void vprint(std::FILE* f, const text_style& ts, const S& format, basic_memory_buffer buf; detail::vformat_to(buf, ts, to_string_view(format), args); buf.push_back(Char(0)); +#ifdef _WIN32 if (detail::is_utf8()) detail::print(f, basic_string_view(buf.begin(), buf.size())); else +#endif detail::fputs(buf.data(), f); }