Merge pull request #515

0921f5b util: use putenv instead of setenv for mingw (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2015-11-30 18:33:39 +02:00
commit 2bed53cb6b
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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;