summaryrefslogtreecommitdiff
path: root/methods/aptmethod.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-05-28 13:22:38 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-05-28 18:12:02 +0200
commit8b79c94af7f7cf2e5e5342294bc6e5a908cacabf (patch)
treeb5e7c254f6a4aa96203aee262cf5fb13ded87fbb /methods/aptmethod.h
parenteceb219c2a64f3f81421c3c6587380b6ae81a530 (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/aptmethod.h')
-rw-r--r--methods/aptmethod.h5
1 files changed, 4 insertions, 1 deletions
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 <apt-pkg/acquire-method.h>
#include <apt-pkg/configuration.h>
+#include <locale>
#include <string>
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