[vlc-commits] demux: adaptive: fix imbue issue

Francois Cartegnie git at videolan.org
Fri Nov 3 19:01:24 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Nov  3 18:59:45 2017 +0100| [20e9085fd786686f5d4bd4ff7284c2843999fd4a] | committer: Francois Cartegnie

demux: adaptive: fix imbue issue

stripping chars on output again.
does someone understands ?

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

 modules/demux/adaptive/http/HTTPConnection.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/adaptive/http/HTTPConnection.cpp b/modules/demux/adaptive/http/HTTPConnection.cpp
index eb85e02ac1..76cfaf9a15 100644
--- a/modules/demux/adaptive/http/HTTPConnection.cpp
+++ b/modules/demux/adaptive/http/HTTPConnection.cpp
@@ -374,6 +374,7 @@ void HTTPConnection::onHeader(const std::string &key,
 std::string HTTPConnection::buildRequestHeader(const std::string &path) const
 {
     std::stringstream req;
+    req.imbue(std::locale("C"));
     req << "GET " << path << " HTTP/1.1\r\n";
     if((params.getScheme() == "http" && params.getPort() != 80) ||
             (params.getScheme() == "https" && params.getPort() != 443))



More information about the vlc-commits mailing list