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/gpgv.cc | |
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/gpgv.cc')
-rw-r--r-- | methods/gpgv.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/methods/gpgv.cc b/methods/gpgv.cc index dd395d659..fc6eb9159 100644 --- a/methods/gpgv.cc +++ b/methods/gpgv.cc @@ -1,6 +1,5 @@ #include <config.h> -#include <apt-pkg/acquire-method.h> #include <apt-pkg/configuration.h> #include <apt-pkg/error.h> #include <apt-pkg/gpgv.h> @@ -427,9 +426,5 @@ bool GPGVMethod::URIAcquire(std::string const &Message, FetchItem *Itm) int main() { - setlocale(LC_ALL, ""); - - GPGVMethod Mth; - - return Mth.Run(); + return GPGVMethod().Run(); } |