From: Scott Cantor Date: Sun, 4 Jan 2015 22:39:16 +0000 (+0000) Subject: Fix a bug affecting newer boost X-Git-Tag: 1.5.4~18 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=6931c51449b062c76ac88dfd5bdf7ceac1600dc4;hp=9e4cdc832243366772a763108f85275ae2477bf1 Fix a bug affecting newer boost --- diff --git a/xmltooling/io/HTTPResponse.cpp b/xmltooling/io/HTTPResponse.cpp index c49c9a8..29623cc 100644 --- a/xmltooling/io/HTTPResponse.cpp +++ b/xmltooling/io/HTTPResponse.cpp @@ -64,8 +64,9 @@ void HTTPResponse::sanitizeURL(const char* url) if (!ch) throw IOException("URL is malformed."); string s(url, ch - url); + std::locale loc; vector::const_iterator i = - find_if(m_allowedSchemes.begin(), m_allowedSchemes.end(), boost::bind(fn, boost::cref(s), _1, boost::cref(std::locale()))); + find_if(m_allowedSchemes.begin(), m_allowedSchemes.end(), boost::bind(fn, boost::cref(s), _1, boost::cref(loc))); if (i != m_allowedSchemes.end()) return;