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 --- debian/changelog | 3 ++- methods/http.cc | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 1d6ca2526..28279ebf4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ apt (0.5.32) unstable; urgency=low - * + * Call setlocale and bindtextdomain in the http method, so that the + messages are properly localised (Closes: #282700) -- 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