From 049c0171c286bbce536c2732ac17605fdea78410 Mon Sep 17 00:00:00 2001 From: Matt Zimmerman Date: Wed, 24 Nov 2004 20:08:16 +0000 Subject: Call setlocale and bindtextdomain in the http method --- methods/http.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'methods') diff --git a/methods/http.cc b/methods/http.cc index 3bb29cde0..68653fbb3 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -1183,6 +1183,9 @@ int HttpMethod::Loop() int main() { + setlocale(LC_ALL, ""); + bindtextdomain(APT_DOMAIN, Cnf.FindDir("Dir::Locale").c_str()); + HttpMethod Mth; return Mth.Loop(); -- cgit v1.2.3 From 0800915dcfcc2a89e69715d494adf21e43bd00cc Mon Sep 17 00:00:00 2001 From: Matt Zimmerman Date: Thu, 25 Nov 2004 17:17:48 +0000 Subject: Fix error in patch-22 --- methods/http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'methods') diff --git a/methods/http.cc b/methods/http.cc index 68653fbb3..e53667c07 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -1184,7 +1184,7 @@ int HttpMethod::Loop() int main() { setlocale(LC_ALL, ""); - bindtextdomain(APT_DOMAIN, Cnf.FindDir("Dir::Locale").c_str()); + bindtextdomain(APT_DOMAIN, _config->FindDir("Dir::Locale").c_str()); HttpMethod Mth; -- cgit v1.2.3