diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-25 21:37:05 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-25 21:38:10 +0000 |
commit | 0921f5b4d7da9aa1f5faec906f22f97a3ce92c81 (patch) | |
tree | 27af062b237656fdc21b30c3e23ea9f0d5efa139 /src/common/util.cpp | |
parent | Merge pull request #495 (diff) | |
download | monero-0921f5b4d7da9aa1f5faec906f22f97a3ce92c81.tar.xz |
util: use putenv instead of setenv for mingw
Diffstat (limited to 'src/common/util.cpp')
-rw-r--r-- | src/common/util.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |