diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 167c4d8261..2e2396075d 100644 --- a/src/common/fs/file.h +++ b/src/common/fs/file.h @@ -37,7 +37,7 @@ void OpenFileStream(FileStream& file_stream, const std::filesystem::path& path, template void OpenFileStream(FileStream& file_stream, const Path& path, std::ios_base::openmode open_mode) { if constexpr (IsChar) { - file_stream.open(ToU8String(path), open_mode); + file_stream.open(std::filesystem::path{ToU8String(path)}, open_mode); } else { file_stream.open(std::filesystem::path{path}, open_mode); }