Skip to content

Commit 7be35c3

Browse files
authored
Save config in UTF-8 (#1524)
1 parent bf239eb commit 7be35c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ void save(const std::filesystem::path& path) {
658658
// TODO Migration code, after a major release this should be removed.
659659
data.at("GUI").as_table().erase("installDir");
660660

661-
std::ofstream file(path, std::ios::out);
661+
std::ofstream file(path, std::ios::binary);
662662
file << data;
663663
file.close();
664664
}

0 commit comments

Comments
 (0)