diff options
| author | Martin Ridgers <[email protected]> | 2021-09-14 16:38:19 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-14 16:38:19 +0200 |
| commit | 87fe1f4fa16763fc2b5d8762859abca5cd2bfb87 (patch) | |
| tree | a991cbfaeee022fc867e98753b431e01df300730 | |
| parent | Moved zencore.h include earlier so it defines ZEN_* macros (diff) | |
| download | zen-87fe1f4fa16763fc2b5d8762859abca5cd2bfb87.tar.xz zen-87fe1f4fa16763fc2b5d8762859abca5cd2bfb87.zip | |
Use portable std::fs::path::u8string() instead of WideToUtf8()
| -rw-r--r-- | zencore/include/zencore/fmtutils.h | 2 |
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); } }; |