Skip to content

Commit

Permalink
Save config in UTF-8 (#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
Osyotr authored Nov 14, 2024
1 parent bf239eb commit 7be35c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ void save(const std::filesystem::path& path) {
// TODO Migration code, after a major release this should be removed.
data.at("GUI").as_table().erase("installDir");

std::ofstream file(path, std::ios::out);
std::ofstream file(path, std::ios::binary);
file << data;
file.close();
}
Expand Down

0 comments on commit 7be35c3

Please sign in to comment.