From 92db2241b067425c8ba4ff802ae1aee586a99a58 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 17 Dec 2019 13:35:39 +0100 Subject: [PATCH] Add Boost extras to global locale. Needed for boost::locale::to_lower() to work. --- src/lib/uri.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/uri.cpp b/src/lib/uri.cpp index 9cd24ef..4b9b14c 100644 --- a/src/lib/uri.cpp +++ b/src/lib/uri.cpp @@ -69,6 +69,12 @@ archive_answer::operator bool() URI::URI(string uri) : _uri(move(uri)) { + // FIXME(tastytea): Only call locale-stuff once after getting rid OF POCO. + // Set global locale with Boost extras. Needed for Boost functions. + const boost::locale::generator locgen; + const std::locale loc = locgen(""); + std::locale::global(loc); + Poco::Net::initializeSSL(); set_proxy();