[vlc-devel] commit: Use ANSI/POSIX float notation uniformly for the command line ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Apr 19 23:31:54 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 20 00:30:28 2009 +0300| [d3fa9af96d13d11e66cd105100b0baf69a747a73] | committer: 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d3fa9af96d13d11e66cd105100b0baf69a747a73
---

 src/config/cmdline.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/config/cmdline.c b/src/config/cmdline.c
index c9fa3ce..cb9076a 100644
--- a/src/config/cmdline.c
+++ b/src/config/cmdline.c
@@ -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 ) );




More information about the vlc-devel mailing list