Commit 958441a8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Get rid of putenv()

parent 5eff95a0
...@@ -1152,9 +1152,8 @@ static void SetLanguage ( const char *psz_lang ) ...@@ -1152,9 +1152,8 @@ static void SetLanguage ( const char *psz_lang )
* the language at runtime under eg. Windows. Beware that this * the language at runtime under eg. Windows. Beware that this
* makes the environment unconsistent when libvlc is unloaded and * makes the environment unconsistent when libvlc is unloaded and
* should probably be moved to a safer place like vlc.c. */ * should probably be moved to a safer place like vlc.c. */
static char psz_lcall[20]; setenv( "LC_ALL", psz_lang, 1 );
snprintf( psz_lcall, sizeof(psz_lcall), "LC_ALL=%s", psz_lang );
putenv( psz_lcall );
#endif #endif
setlocale( LC_ALL, psz_lang ); setlocale( LC_ALL, psz_lang );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment