From 87fe1f4fa16763fc2b5d8762859abca5cd2bfb87 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Tue, 14 Sep 2021 16:38:19 +0200 Subject: Use portable std::fs::path::u8string() instead of WideToUtf8() --- zencore/include/zencore/fmtutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zencore/include') diff --git a/zencore/include/zencore/fmtutils.h b/zencore/include/zencore/fmtutils.h index fb5a08d56..29e2ae78a 100644 --- a/zencore/include/zencore/fmtutils.h +++ b/zencore/include/zencore/fmtutils.h @@ -43,7 +43,7 @@ struct fmt::formatter : formatter auto format(const std::filesystem::path& Path, FormatContext& ctx) { zen::ExtendableStringBuilder<128> String; - WideToUtf8(Path.c_str(), String); + String << Path.u8string(); return formatter::format(String.ToView(), ctx); } }; -- cgit v1.2.3