summaryrefslogtreecommitdiffstats
path: root/input/input.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-20 13:22:53 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-20 13:22:53 +0000
commit6e450282a69f5437b737872d798c611cbe7064ad (patch)
treec72b2eb58f623ef4ee75c745e8bda5361ddc470b /input/input.c
parent6974dfae6b1db5ed81cfc66ae721f8a36d42bfda (diff)
downloadmpv-6e450282a69f5437b737872d798c611cbe7064ad.tar.bz2
mpv-6e450282a69f5437b737872d798c611cbe7064ad.tar.xz
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
Diffstat (limited to 'input/input.c')
-rw-r--r--input/input.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/input/input.c b/input/input.c
index 1adf8371ca..f919a9ad4c 100644
--- a/input/input.c
+++ b/input/input.c
@@ -12,10 +12,6 @@
#include <fcntl.h>
#include <ctype.h>
-#ifdef USE_SETLOCALE
-#include <locale.h>
-#endif
-
#include "input.h"
#include "mouse.h"
#ifdef MP_DEBUG
@@ -599,14 +595,7 @@ mp_input_parse_cmd(char* str) {
break;
case MP_CMD_ARG_FLOAT:
errno = 0;
- /* <olo@altkom.com.pl> Use portable C locale for parsing floats: */
-#ifdef USE_SETLOCALE
- setlocale(LC_NUMERIC, "C");
-#endif
cmd->args[i].v.f = atof(ptr);
-#ifdef USE_SETLOCALE
- setlocale(LC_NUMERIC, "");
-#endif
if(errno != 0) {
mp_msg(MSGT_INPUT,MSGL_ERR,"Command %s: argument %d isn't a float.\n",cmd_def->name,i+1);
ptr = NULL;