Commit d3fa9af9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use ANSI/POSIX float notation uniformly for the command line

This is consistent with the vlcrc syntax. Shell scripts et al. are
unlikely to be aware of the locale decimal separator anyway.
parent 9a0c0a54
......@@ -27,7 +27,8 @@
#include <vlc_common.h>
#include "../libvlc.h"
#include "vlc_keys.h"
#include <vlc_keys.h>
#include <vlc_charset.h>
#ifdef HAVE_GETOPT_LONG
# ifdef HAVE_GETOPT_H
......@@ -297,7 +298,7 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
config_PutInt( p_this, psz_name, strtol(optarg, 0, 0));
break;
case CONFIG_ITEM_FLOAT:
config_PutFloat( p_this, psz_name, (float)atof(optarg) );
config_PutFloat( p_this, psz_name, us_atof(optarg) );
break;
case CONFIG_ITEM_KEY:
config_PutInt( p_this, psz_name, ConfigStringToKey( optarg ) );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment