Use glib to provide setenv()

(for some strange reason, setenv() is called putenv() on Windows!!)
This commit is contained in:
John Emmas 2022-10-11 10:46:57 +01:00
parent 7216a767df
commit 43a9ae7458
1 changed files with 3 additions and 3 deletions

View File

@ -280,9 +280,9 @@ int main (int argc, char *argv[])
just calling setlocale (...,"C") is not sufficient for this;
it is probably the LANG env var which gets picked up later somewhere.
*/
setenv ("LC_ALL", "C", 1);
setenv ("LC_MESSAGES", "C", 1);
setenv ("LANG", "C", 1);
g_setenv ("LC_ALL", "C", 1);
g_setenv ("LC_MESSAGES", "C", 1);
g_setenv ("LANG", "C", 1);
}
#endif