[MPlayer-cvslog] CVS: main/libmpdemux asf_mmst_streaming.c, 1.26, 1.27

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/libmpdemux
In directory mail:/var2/tmp/cvs-serv20581/libmpdemux

Modified Files:
	asf_mmst_streaming.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: asf_mmst_streaming.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asf_mmst_streaming.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- asf_mmst_streaming.c	15 Dec 2004 19:12:46 -0000	1.26
+++ asf_mmst_streaming.c	20 Jan 2005 13:22:53 -0000	1.27
@@ -31,7 +31,6 @@
 #ifdef USE_LANGINFO
 #include <langinfo.h>
 #endif
-#include <locale.h>
 #endif
 
 #include "url.h"
@@ -535,11 +534,10 @@
 
   /* prepare for the url encoding conversion */
 #ifdef USE_ICONV
-  setlocale(LC_CTYPE, "");
 #ifdef USE_LANGINFO
   url_conv = iconv_open("UTF-16LE",nl_langinfo(CODESET));
 #else
-  url_conv = iconv_open("UTF-16LE",setlocale(LC_CTYPE, NULL));
+  url_conv = iconv_open("UTF-16LE", NULL);
 #endif
 #endif
 




More information about the MPlayer-cvslog mailing list