From 664f6768f20ef28947c3c8eafbafdf0f206334e1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 11 Oct 2022 15:05:27 +0200 Subject: [PATCH] Fix windows builds, use portable setenv --- gtk2_ardour/main.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index e691cdbcc4..a1a00c2055 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -277,12 +277,12 @@ int main (int argc, char *argv[]) } } else { /* Force-disable localization if the user wishes so; - just calling setlocale (...,"C") is not sufficient for this; - it is probably the LANG env var which gets picked up later somewhere. - */ - g_setenv ("LC_ALL", "C", 1); - g_setenv ("LC_MESSAGES", "C", 1); - g_setenv ("LANG", "C", 1); + * just calling setlocale (...,"C") is not sufficient for this; + * it is probably the LANG env var which gets picked up later somewhere. + */ + Glib::setenv ("LC_ALL", "C", true); + Glib::setenv ("LC_MESSAGES", "C", true); + Glib::setenv ("LANG", "C", true); } #endif