Skip to content

Commit

Permalink
🐛 Fix set_utf8_locale() on Linux / Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Nov 11, 2024
1 parent ac72d4f commit b4a9c22
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Cool/Core/set_utf8_locale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@ namespace Cool {

void set_utf8_locale()
{
if (!std::setlocale(LC_ALL,
#ifdef _WIN32
".65001" // utf-8
#else
"UTF-8"
#endif
))
{
if (!std::setlocale(LC_ALL, ".65001" /*utf-8*/))
assert(false);
}
#endif
}

} // namespace Cool

0 comments on commit b4a9c22

Please sign in to comment.