1
1
mirror of https://github.com/tstack/lnav.git synced 2024-09-11 13:05:51 +03:00

[win] catch locale exception

This commit is contained in:
Timothy Stack 2022-04-06 13:07:08 -07:00
parent c125211a7e
commit 7652c58248

View File

@ -2156,7 +2156,11 @@ main(int argc, char* argv[])
}
(void) signal(SIGPIPE, SIG_IGN);
std::locale::global(std::locale(""));
try {
std::locale::global(std::locale(""));
} catch (const std::runtime_error& e) {
log_error("unable to set locale to ''");
}
umask(027);
/* Disable Lnav from being able to execute external commands if