From 8b79c94af7f7cf2e5e5342294bc6e5a908cacabf Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 28 May 2016 13:22:38 +0200 Subject: 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. --- methods/https.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'methods/https.cc') diff --git a/methods/https.cc b/methods/https.cc index fc439bef8..35992ee96 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -13,7 +13,6 @@ #include #include -#include #include #include #include @@ -528,11 +527,6 @@ std::unique_ptr HttpsMethod::CreateServerState(URI const &uri)/*{{{ int main() { - setlocale(LC_ALL, ""); - - HttpsMethod Mth; - curl_global_init(CURL_GLOBAL_SSL) ; - - return Mth.Run(); + return HttpsMethod().Run(); } -- cgit v1.2.3