diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-11-30 18:33:39 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-11-30 18:33:43 +0200 |
commit | 2bed53cb6b6aecbebd74fb0dc579af7df05d934b (patch) | |
tree | 3d02b8aad82d6e400947950a4565d7e6ad103d3b | |
parent | Merge pull request #514 (diff) | |
parent | util: use putenv instead of setenv for mingw (diff) | |
download | monero-2bed53cb6b6aecbebd74fb0dc579af7df05d934b.tar.xz |
Merge pull request #515
0921f5b util: use putenv instead of setenv for mingw (moneromooo-monero)
-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 371b55add..e5d22acb0 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; |