diff --git a/src/main.cc b/src/main.cc index 0ef8c060..994edeee 100644 --- a/src/main.cc +++ b/src/main.cc @@ -706,7 +706,8 @@ int run_pipe(StringView session) int main(int argc, char* argv[]) { - std::locale::global(std::locale("")); + try { std::locale::global(std::locale("")); } + catch (std::runtime_error&) { setlocale(LC_ALL, ""); } set_signal_handler(SIGSEGV, signal_handler); set_signal_handler(SIGFPE, signal_handler);