Commit 642b666c authored by Antoine Cellerier's avatar Antoine Cellerier

* setlocale( LC_NUMERIC, "C" ). There still might be some place where its

   missing. Beware that this change configuration saving output (it used
   to be saved in users locale).

   this should fix float config options save/load rounding issues. If someone
   has a better fix, feel free to do so (but please dont revert a commit and
   provide no alternative fix)
parent f940c37b
......@@ -1918,6 +1918,7 @@ static void SetLanguage ( char const *psz_lang )
#endif
setlocale( LC_ALL, psz_lang );
setlocale(LC_NUMERIC, "C" );
}
/* Specify where to find the locales for current domain */
......
......@@ -758,6 +758,8 @@ int __config_LoadConfigFile( vlc_object_t *p_this, const char *psz_module_name )
char *psz_filename, *psz_homedir, *psz_configfile;
int i_index;
setlocale( LC_NUMERIC, "C" );
psz_configfile = p_this->p_vlc->psz_configfile;
if( !psz_configfile || !psz_configfile )
{
......@@ -1026,6 +1028,8 @@ int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
char *psz_filename, *psz_homedir, *psz_configfile;
int i_index;
setlocale( LC_NUMERIC, "C" );
/* Acquire config file lock */
vlc_mutex_lock( &p_this->p_vlc->config_lock );
......
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