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:
parent
c125211a7e
commit
7652c58248
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user