diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-01-20 13:22:53 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-01-20 13:22:53 +0000 |
commit | 6e450282a69f5437b737872d798c611cbe7064ad (patch) | |
tree | c72b2eb58f623ef4ee75c745e8bda5361ddc470b /Gui | |
parent | 6974dfae6b1db5ed81cfc66ae721f8a36d42bfda (diff) |
remove all setlocale calls, they break the behaviour of sscanf and
strcasecmp, especially with tr_TR locale - and do not seem to be good for
anything.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14543 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r-- | Gui/cfg.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -10,10 +10,6 @@ #include "../m_config.h" #include "../m_option.h" -#ifdef USE_SETLOCALE -#include <locale.h> -#endif - #include "../../libvo/video_out.h" #include "cfg.h" @@ -208,10 +204,6 @@ int cfg_read( void ) char * cfg = get_path( "gui.conf" ); FILE * f; -#ifdef USE_SETLOCALE - setlocale( LC_ALL,"C" ); -#endif - // -- read configuration mp_msg( MSGT_GPLAYER,MSGL_V,"[cfg] reading config file: %s\n",cfg ); gui_conf=m_config_new(); @@ -272,10 +264,6 @@ int cfg_read( void ) } free( cfg ); -#ifdef USE_SETLOCALE - setlocale( LC_ALL,"" ); -#endif - return 0; } @@ -285,10 +273,6 @@ int cfg_write( void ) FILE * f; int i; -#ifdef USE_SETLOCALE - setlocale( LC_ALL,"C" ); -#endif - // -- save configuration if ( (f=fopen( cfg,"wt+" )) ) { @@ -348,10 +332,6 @@ int cfg_write( void ) } free( cfg ); -#ifdef USE_SETLOCALE - setlocale( LC_ALL,"" ); -#endif - return 0; } |