# HG changeset patch # User rguyom # Date 1036336471 0 # Node ID 3aee0db04665a04cd0dc1a7bbcf311fc02a9a938 # Parent d630c877c05c2bed014be22af4388d7e5d383b90 Fixed a bug which would prevent proper parsing of floating point options when the locale used has a decimal point other than the dot character ("."). Idea by Aleksander Adamowski . diff -r d630c877c05c -r 3aee0db04665 libmpcodecs/vf_unsharp.c --- a/libmpcodecs/vf_unsharp.c Sun Nov 03 14:49:45 2002 +0000 +++ b/libmpcodecs/vf_unsharp.c Sun Nov 03 15:14:31 2002 +0000 @@ -27,6 +27,10 @@ #include "../mp_msg.h" #include "../cpudetect.h" +#ifdef USE_SETLOCALE +#include +#endif + #ifdef HAVE_MALLOC_H #include #endif @@ -265,7 +269,13 @@ // parse amount pos = strchr( pos+1, ':' ); +#ifdef USE_SETLOCALE + setlocale( LC_NUMERIC, "C" ); +#endif fp->amount = ( pos && pos+1