From 0921f5b4d7da9aa1f5faec906f22f97a3ce92c81 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 25 Nov 2015 21:37:05 +0000 Subject: util: use putenv instead of setenv for mingw --- src/common/util.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common/util.cpp') diff --git a/src/common/util.cpp b/src/common/util.cpp index 4c1b44004..b41862718 100644 --- a/src/common/util.cpp +++ b/src/common/util.cpp @@ -402,8 +402,13 @@ std::string get_nix_version_display_string() } catch (...) { +#if defined(__MINGW32__) || defined(__MINGW__) + putenv("LC_ALL=C"); + putenv("LANG=C"); +#else setenv("LC_ALL", "C", 1); setenv("LANG", "C", 1); +#endif return true; } return false; -- cgit v1.2.3