Skip to content

Commit

Permalink
fix: explicitly set UTF8 code page on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Nov 20, 2024
1 parent da8dfb6 commit 977859d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ void setup_default_locale() {
<< "\n";
}
}
#ifdef _WIN32
SetConsoleOutputCP(CP_UTF8);
#endif
}

std::string error_cp_to_utf8(std::string_view error) {
Expand Down

0 comments on commit 977859d

Please sign in to comment.