From 6e450282a69f5437b737872d798c611cbe7064ad Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 20 Jan 2005 13:22:53 +0000 Subject: 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 --- Gui/cfg.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'Gui/cfg.c') diff --git a/Gui/cfg.c b/Gui/cfg.c index 104b64bab8..b24124739d 100644 --- a/Gui/cfg.c +++ b/Gui/cfg.c @@ -10,10 +10,6 @@ #include "../m_config.h" #include "../m_option.h" -#ifdef USE_SETLOCALE -#include -#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; } -- cgit v1.2.3