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/mirror.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'methods/mirror.cc') diff --git a/methods/mirror.cc b/methods/mirror.cc index 01eed09f0..9d900771b 100644 --- a/methods/mirror.cc +++ b/methods/mirror.cc @@ -12,7 +12,6 @@ #include #include -#include #include #include #include @@ -465,11 +464,7 @@ void MirrorMethod::URIDone(FetchResult &Res,FetchResult *Alt) int main() { - setlocale(LC_ALL, ""); - - MirrorMethod Mth; - - return Mth.Loop(); + return MirrorMethod().Loop(); } -- cgit v1.2.3