Skip to content

Commit

Permalink
debugging issue with locale (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
giuspen committed Jun 17, 2024
1 parent 18b381e commit f4a5299
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ct/ct_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ void glib_log_handler(const gchar*/*log_domain*/, GLogLevelFlags log_level, cons

int main(int argc, char *argv[])
{
#if !defined(_WIN32) && !defined(__APPLE__)
try {
std::locale::global(std::locale("")); // Set the global C++ locale to the user-specified locale
}
catch (std::exception& e) {
g_warning("%s\n", e.what());
}
#endif /* !_WIN32 && !__APPLE__ */

{
const char* pExePath = argv[0];
#if defined(_WIN32)
Expand Down

0 comments on commit f4a5299

Please sign in to comment.