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
@ -36,13 +36,13 @@ int safe_main(std::function<int(void)> fn) {
|
|||||||
try {
|
try {
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
folly::symbolizer::installFatalSignalHandler();
|
folly::symbolizer::installFatalSignalHandler();
|
||||||
#endif
|
|
||||||
#ifdef _WIN32
|
|
||||||
char const* locale = "en_US.utf8";
|
|
||||||
#else
|
|
||||||
char const* locale = "";
|
|
||||||
#endif
|
#endif
|
||||||
try {
|
try {
|
||||||
|
#ifdef _WIN32
|
||||||
|
char const* locale = "en_US.utf8";
|
||||||
|
#else
|
||||||
|
char const* locale = "";
|
||||||
|
#endif
|
||||||
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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user