diff --git a/include/fmt/std.h b/include/fmt/std.h index 8135f757..a71a59db 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -73,7 +73,7 @@ void write_escaped_path(basic_memory_buffer& quoted, # ifdef _WIN32 template <> -auto get_path_string(const std::filesystem::path& p) { +inline auto get_path_string(const std::filesystem::path& p) { return to_utf8(p.native(), to_utf8_error_policy::replace); }