Mercurial > mplayer.hg
diff libmpcodecs/vf_unsharp.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 | 7d6a854a5fe5 |
children | 6ff3379a0862 |
line wrap: on
line diff
--- a/libmpcodecs/vf_unsharp.c Wed Jan 19 18:24:53 2005 +0000 +++ b/libmpcodecs/vf_unsharp.c Thu Jan 20 13:22:53 2005 +0000 @@ -27,10 +27,6 @@ #include "../mp_msg.h" #include "../cpudetect.h" -#ifdef USE_SETLOCALE -#include <locale.h> -#endif - #ifdef HAVE_MALLOC_H #include <malloc.h> #endif @@ -267,13 +263,7 @@ // parse amount pos = strchr( pos+1, ':' ); -#ifdef USE_SETLOCALE - setlocale( LC_NUMERIC, "C" ); -#endif fp->amount = ( pos && pos+1<max ) ? atof( pos+1 ) : 0; -#ifdef USE_SETLOCALE - setlocale( LC_NUMERIC, "" ); -#endif } //===========================================================================//