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 --- libmpcodecs/ad_libvorbis.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libmpcodecs/ad_libvorbis.c') diff --git a/libmpcodecs/ad_libvorbis.c b/libmpcodecs/ad_libvorbis.c index 9bee3678da..e8c25a1887 100644 --- a/libmpcodecs/ad_libvorbis.c +++ b/libmpcodecs/ad_libvorbis.c @@ -8,10 +8,6 @@ #include "config.h" #include "ad_internal.h" -#ifdef USE_SETLOCALE -#include -#endif - #ifdef HAVE_OGGVORBIS static ad_info_t info = @@ -50,13 +46,7 @@ static int read_vorbis_comment( char* ptr, char* comment, char* format, ... ) { va_start( va, format ); clen = strlen( comment ); -#ifdef USE_SETLOCALE - setlocale( LC_NUMERIC, "C" ); -#endif ret = strncasecmp( ptr, comment, clen) == 0 ? vsscanf( ptr+clen, format, va ) : 0; -#ifdef USE_SETLOCALE - setlocale( LC_NUMERIC, "" ); -#endif va_end( va ); return ret; -- cgit v1.2.3