Add Boost extras to global locale.
All checks were successful
continuous-integration/drone/push Build is passing

Needed for boost::locale::to_lower() to work.
This commit is contained in:
tastytea 2019-12-17 13:35:39 +01:00
parent f9101a3aa1
commit 92db2241b0
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -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();