Fix small codacy style nit

This commit is contained in:
Marcus Holland-Moritz 2023-09-03 17:19:55 +02:00
parent b1cbfce55d
commit e677cdaeaa

View File

@ -37,12 +37,12 @@ int safe_main(std::function<int(void)> fn) {
#ifndef _WIN32 #ifndef _WIN32
folly::symbolizer::installFatalSignalHandler(); folly::symbolizer::installFatalSignalHandler();
#endif #endif
try {
#ifdef _WIN32 #ifdef _WIN32
char const* locale = "en_US.utf8"; char const* locale = "en_US.utf8";
#else #else
char const* locale = ""; char const* locale = "";
#endif #endif
try {
std::locale::global(std::locale(locale)); std::locale::global(std::locale(locale));
if (!std::setlocale(LC_ALL, locale)) { if (!std::setlocale(LC_ALL, locale)) {
std::cerr << "warning: setlocale(LC_ALL, \"\") failed\n"; std::cerr << "warning: setlocale(LC_ALL, \"\") failed\n";