Mercurial > mplayer.hg
diff Gui/cfg.c @ 14542:4a6b79a1ad52
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.
author | reimar |
---|---|
date | Thu, 20 Jan 2005 13:22:53 +0000 |
parents | c30e193ac112 |
children | e2b2ab284a9a |
line wrap: on
line diff
--- a/Gui/cfg.c Wed Jan 19 18:24:53 2005 +0000 +++ b/Gui/cfg.c Thu Jan 20 13:22:53 2005 +0000 @@ -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 @@ 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 @@ } free( cfg ); -#ifdef USE_SETLOCALE - setlocale( LC_ALL,"" ); -#endif - return 0; } @@ -285,10 +273,6 @@ FILE * f; int i; -#ifdef USE_SETLOCALE - setlocale( LC_ALL,"C" ); -#endif - // -- save configuration if ( (f=fopen( cfg,"wt+" )) ) { @@ -348,10 +332,6 @@ } free( cfg ); -#ifdef USE_SETLOCALE - setlocale( LC_ALL,"" ); -#endif - return 0; }