[MPlayer-cvslog] CVS: main configure, 1.953, 1.954 mp_msg.c, 1.24, 1.25 mp_msg.h, 1.32, 1.33
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Thu Jan 20 14:22:55 CET 2005
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv20581
Modified Files:
configure mp_msg.c mp_msg.h
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: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.953
retrieving revision 1.954
diff -u -r1.953 -r1.954
--- configure 16 Jan 2005 22:01:52 -0000 1.953
+++ configure 20 Jan 2005 13:22:52 -0000 1.954
@@ -1382,7 +1382,6 @@
_linux_devfs=no
_i18n=auto
_dynamic_plugins=no
-_setlocale=auto
_crash_debug=auto
_sighandler=yes
_libdv=auto
@@ -1428,8 +1427,6 @@
--disable-i18n) _i18n=no ;;
--enable-dynamic-plugins) _dynamic_plugins=yes ;;
--disable-dynamic-plugins) _dynamic_plugins=no ;;
- --enable-setlocale) _setlocale=yes ;;
- --disable-setlocale) _setlocale=no ;;
--enable-x11) _x11=yes ;;
--disable-x11) _x11=no ;;
--enable-xv) _xv=yes ;;
@@ -2179,26 +2176,6 @@
fi
-# Checking for setlocale() ...
-# CSAK EGY MARADHAT - A HEGYLAKO
-# Nemnem. a TV Maci !
-echocheck "setlocale()"
-if test "$_setlocale" = auto ; then
- cat > $TMPC <<EOF
-#include <locale.h>
-int main(void) { setlocale( LC_ALL,"" ); return 0; }
-EOF
- _setlocale=no
- cc_check && _setlocale=yes
-fi
-if test "$_setlocale" = yes ; then
- _def_setlocale='#define USE_SETLOCALE 1'
-else
- _def_setlocale='#undef USE_SETLOCALE'
-fi
-echores "$_setlocale"
-
-
echocheck "iconv"
if test "$_iconv" = auto ; then
_iconv_tmp='#include <iconv.h>'
@@ -6834,9 +6811,6 @@
# define MAP_FAILED ((void *) -1)
#endif
-/* use setlocale() function */
-$_def_setlocale
-
/* Runtime CPU detection */
$_def_runtime_cpudetection
Index: mp_msg.c
===================================================================
RCS file: /cvsroot/mplayer/main/mp_msg.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- mp_msg.c 12 Sep 2003 15:46:16 -0000 1.24
+++ mp_msg.c 20 Jan 2005 13:22:52 -0000 1.25
@@ -36,7 +36,6 @@
fprintf(stdout, "Original domain: %s\n", textdomain(NULL));
fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL));
#endif
- setlocale(LC_ALL, ""); /* set from the environment variables */
bindtextdomain("mplayer", PREFIX"/share/locale");
textdomain("mplayer");
#ifdef MP_DEBUG
Index: mp_msg.h
===================================================================
RCS file: /cvsroot/mplayer/main/mp_msg.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- mp_msg.h 25 Nov 2004 22:23:59 -0000 1.32
+++ mp_msg.h 20 Jan 2005 13:22:52 -0000 1.33
@@ -108,7 +108,6 @@
#ifdef USE_I18N
#include <libintl.h>
-#include <locale.h>
#define mp_gettext(String) gettext(String)
#else
#define mp_gettext(String) String
More information about the MPlayer-cvslog
mailing list