[vlc-commits] HLS: always use "C" locale to parse float

Jean-Baptiste Kempf git at videolan.org
Tue Dec 8 10:12:21 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec  8 10:10:17 2015 +0100| [fc6726dbc086c8d1a93c35aecbe4de4609cb078c] | committer: Jean-Baptiste Kempf

HLS: always use "C" locale to parse float

Pointed-by: KO Myung-Hun <komh78 at gmail.com>
Acked-By: Francois Cartegnie <fcvlcdev at free.fr>

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

 modules/demux/hls/playlist/Tags.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/hls/playlist/Tags.cpp b/modules/demux/hls/playlist/Tags.cpp
index c8b0361..9c25fc4 100644
--- a/modules/demux/hls/playlist/Tags.cpp
+++ b/modules/demux/hls/playlist/Tags.cpp
@@ -45,7 +45,7 @@ uint64_t Attribute::decimal() const
 double Attribute::floatingPoint() const
 {
     std::istringstream is(value);
-    is.imbue(std::locale(""));
+    is.imbue(std::locale("C"));
     double ret;
     is >> ret;
     return ret;



More information about the vlc-commits mailing list