/* Translate "C" to the language code: "fr", "en_GB", "nl", "ru"... */
msg_Dbg( p_vlc, "translation test: code is \"%s\"", _("C") );
- textdomain( PACKAGE_NAME );
-
-#if defined( ENABLE_UTF8 )
- bind_textdomain_codeset( PACKAGE_NAME, "UTF-8" );
-#endif
-
module_EndBank( p_vlc );
module_InitBank( p_vlc );
config_LoadConfigFile( p_vlc, "main" );
libvlc.to_locale = vlc_iconv_open( psz_charset, "UTF-8" );
if( !libvlc.to_locale )
{
- // Not sure it is the right thing to do, but at least it
- // doesn't make vlc crash with msvc !
+ /* Not sure it is the right thing to do, but at least it
+ doesn't make vlc crash with msvc ! */
libvlc.to_locale = (vlc_iconv_t)(-1);
}
}
#endif
setlocale( LC_ALL, psz_lang );
+ /* many code paths assume that float numbers are formatted according
+ * to the US standard (ie. with dot as decimal point), so we keep
+ * C for LC_NUMERIC. */
setlocale(LC_NUMERIC, "C" );
}
- setlocale( LC_ALL, "C" );
/* Specify where to find the locales for current domain */
#if !defined( SYS_DARWIN ) && !defined( WIN32 ) && !defined( SYS_BEOS )
/* Set the default domain */
textdomain( PACKAGE_NAME );
-
bind_textdomain_codeset( PACKAGE_NAME, "UTF-8" );
#endif
}