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

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