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/aptmethod.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'methods/aptmethod.h') diff --git a/methods/aptmethod.h b/methods/aptmethod.h index f8a68c92b..cf3496e45 100644 --- a/methods/aptmethod.h +++ b/methods/aptmethod.h @@ -4,6 +4,7 @@ #include #include +#include #include class aptMethod : public pkgAcqMethod @@ -44,7 +45,9 @@ public: aptMethod(char const * const Binary, char const * const Ver, unsigned long const Flags) : pkgAcqMethod(Ver, Flags), Binary(Binary) - {} + { + std::locale::global(std::locale("")); + } }; #endif -- cgit v1.2.3