From a3b572cf0aee07554ced7c17a83e2620ee310027 Mon Sep 17 00:00:00 2001 From: red-skull Date: Tue, 30 Aug 2011 00:02:59 +0000 Subject: [PATCH] fix #400, live language switch doesn't work for system language git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9660 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/options_screen_ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/states_screens/options_screen_ui.cpp b/src/states_screens/options_screen_ui.cpp index cceeaa008..f54272b02 100644 --- a/src/states_screens/options_screen_ui.cpp +++ b/src/states_screens/options_screen_ui.cpp @@ -245,7 +245,7 @@ void OptionsScreenUI::eventCallback(Widget* widget, const std::string& name, con #ifdef WIN32 _putenv("LANGUAGE="); #else - setenv( "LANGUAGE", "", 1); + unsetenv("LANGUAGE"); #endif } else