]> git.sesse.net Git - vlc/commitdiff
Win32: do not override LC_ALL
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 12 Jul 2012 19:40:54 +0000 (22:40 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 12 Jul 2012 19:40:54 +0000 (22:40 +0300)
This code might have had some effects on some other OS (BeOS?), but
it should not be required on Windows. Also good-mannered and
thread-safe libraries do not modify the environment.

src/libvlc.c

index 49220ab91db58000f0813256c122be8193f96980..3a321c744007373b5419f53b0d2654bee6caea5e 100644 (file)
@@ -821,13 +821,6 @@ static void SetLanguage ( const char *psz_lang )
      * other platforms. --Meuuh */
     setenv( "LANG", psz_lang, 1 );
 
-#else
-    /* We set LC_ALL manually because it is the only way to set
-     * the language at runtime under eg. Windows. Beware that this
-     * makes the environment unconsistent when libvlc is unloaded and
-     * should probably be moved to a safer place like vlc.c. */
-    setenv( "LC_ALL", psz_lang, 1 );
-
 #endif
 
     setlocale( LC_ALL, psz_lang );