diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-05-28 13:22:38 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-05-28 18:12:02 +0200 |
commit | 8b79c94af7f7cf2e5e5342294bc6e5a908cacabf (patch) | |
tree | b5e7c254f6a4aa96203aee262cf5fb13ded87fbb /methods/https.h | |
parent | eceb219c2a64f3f81421c3c6587380b6ae81a530 (diff) |
use std::locale::global instead of setlocale
We use a wild mixture of C and C++ ways of generating output, so having
a consistent world-view in both styles sounds like a good idea and
should help in preventing regressions.
Diffstat (limited to 'methods/https.h')
-rw-r--r-- | methods/https.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/methods/https.h b/methods/https.h index 4d50c5a04..74b86a24f 100644 --- a/methods/https.h +++ b/methods/https.h @@ -11,8 +11,6 @@ #ifndef APT_HTTPS_H #define APT_HTTPS_H -#include <apt-pkg/acquire-method.h> - #include <curl/curl.h> #include <iostream> #include <stddef.h> @@ -82,6 +80,7 @@ class HttpsMethod : public ServerMethod HttpsMethod() : ServerMethod("https","1.2",Pipeline | SendConfig) { + curl_global_init(CURL_GLOBAL_SSL); curl = curl_easy_init(); }; |