aboutsummaryrefslogtreecommitdiff
path: root/zencore
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-14 16:38:19 +0200
committerMartin Ridgers <[email protected]>2021-09-14 16:38:19 +0200
commit87fe1f4fa16763fc2b5d8762859abca5cd2bfb87 (patch)
treea991cbfaeee022fc867e98753b431e01df300730 /zencore
parentMoved zencore.h include earlier so it defines ZEN_* macros (diff)
downloadzen-87fe1f4fa16763fc2b5d8762859abca5cd2bfb87.tar.xz
zen-87fe1f4fa16763fc2b5d8762859abca5cd2bfb87.zip
Use portable std::fs::path::u8string() instead of WideToUtf8()
Diffstat (limited to 'zencore')
-rw-r--r--zencore/include/zencore/fmtutils.h2
1 files changed, 1 insertions, 1 deletions
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<std::filesystem::path> : formatter<string_view>
auto format(const std::filesystem::path& Path, FormatContext& ctx)
{
zen::ExtendableStringBuilder<128> String;
- WideToUtf8(Path.c_str(), String);
+ String << Path.u8string();
return formatter<string_view>::format(String.ToView(), ctx);
}
};