[vlc-commits] strings: use US locale to parse ISO_8601 time format

Francois Cartegnie git at videolan.org
Thu Dec 18 22:39:54 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 10 13:36:15 2014 +0100| [de481b7b3d8e7ea24010c4da4257813edd793bf4] | committer: Francois Cartegnie

strings: use US locale to parse ISO_8601 time format

Or fails on PT123.123S

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

 src/text/strings.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/text/strings.c b/src/text/strings.c
index fefc984..a872a1f 100644
--- a/src/text/strings.c
+++ b/src/text/strings.c
@@ -925,7 +925,7 @@ time_t str_duration( const char *psz_duration )
         return -1;
     do
     {
-        double number = strtod( psz_duration, &end_ptr );
+        double number = us_strtod( psz_duration, &end_ptr );
         double      mul = 0;
         if ( psz_duration != end_ptr )
             psz_duration = end_ptr;



More information about the vlc-commits mailing list