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 21, 2024
1 parent 82cd27d commit ee5b82d
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 ee5b82d

Please sign in to comment.