mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-04 02:06:22 -04:00
Fix small codacy style nit
This commit is contained in:
parent
b1cbfce55d
commit
e677cdaeaa
@ -37,12 +37,12 @@ int safe_main(std::function<int(void)> fn) {
|
||||
#ifndef _WIN32
|
||||
folly::symbolizer::installFatalSignalHandler();
|
||||
#endif
|
||||
try {
|
||||
#ifdef _WIN32
|
||||
char const* locale = "en_US.utf8";
|
||||
#else
|
||||
char const* locale = "";
|
||||
#endif
|
||||
try {
|
||||
std::locale::global(std::locale(locale));
|
||||
if (!std::setlocale(LC_ALL, locale)) {
|
||||
std::cerr << "warning: setlocale(LC_ALL, \"\") failed\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user