[MPlayer-cvslog] CVS: main/Gui cfg.c,1.42,1.43
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Thu Jan 20 14:22:54 CET 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/Gui
In directory mail:/var2/tmp/cvs-serv20581/Gui
Modified Files:
cfg.c
Log Message:
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.
Index: cfg.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/cfg.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- cfg.c 15 Dec 2004 01:22:23 -0000 1.42
+++ cfg.c 20 Jan 2005 13:22:52 -0000 1.43
@@ -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;
}
More information about the MPlayer-cvslog
mailing list