aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util.cpp')
-rw-r--r--src/common/util.cpp5
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;