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. --- apt-private/private-main.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apt-private') diff --git a/apt-private/private-main.cc b/apt-private/private-main.cc index 9eb306834..0a9f4713f 100644 --- a/apt-private/private-main.cc +++ b/apt-private/private-main.cc @@ -7,6 +7,8 @@ #include #include +#include + #include #include #include @@ -16,7 +18,7 @@ void InitLocale() /*{{{*/ { - setlocale(LC_ALL,""); + std::locale::global(std::locale("")); textdomain(PACKAGE); } /*}}}*/ -- cgit v1.2.3