Use UTF-8-safe filesystem paths end-to-end

This commit is contained in:
patchzyy committed 2026-08-28 19:01:14 +02:00
1 parent 4897e7e27d
commit b5e5858e1d
26 files changed
+334 -306

No files matched your search

+2 -1
View File
@@ -81,7 +81,8 @@ inline bool WriteSerial(const std::filesystem::path& path, const std::string& se
return false;
}
const std::filesystem::path temporary = path.string() + ".tmp";
std::filesystem::path temporary = path;
temporary += ".tmp";
{
std::ofstream output(temporary, std::ios::trunc);
if (!output) {