]> git.sesse.net Git - vlc/commitdiff
Do not set locale twice (it is already taken care of by VLC),
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Sep 2007 18:57:57 +0000 (18:57 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Sep 2007 18:57:57 +0000 (18:57 +0000)
especially as this is not thread-safe, and not something a library
should ever do.

src/libvlc-common.c

index 61f2842b2292b21f789a9b0947e391d398c94a76..164cb8d1adb9626440d285cba3fc9fa3e2aefae3 100644 (file)
@@ -272,10 +272,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
     /*
      * Support for gettext
      */
-#ifdef HAVE_LC_MESSAGES
-    setlocale( LC_MESSAGES, "" );
-#endif
-    setlocale( LC_CTYPE, "" );
     LoadMessages ();
 
     /* Translate "C" to the language code: "fr", "en_GB", "nl", "ru"... */