summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorMatt Zimmerman <matt.zimmerman@canonical.com>2004-11-24 20:08:16 +0000
committerMatt Zimmerman <matt.zimmerman@canonical.com>2004-11-24 20:08:16 +0000
commit049c0171c286bbce536c2732ac17605fdea78410 (patch)
tree53b606474fd03b0ed0bb3cfab7c7ae13b7ee800b /methods/http.cc
parent4845b8d50e9b1546127423aba675635024c93aa1 (diff)
Call setlocale and bindtextdomain in the http method
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc3
1 files changed, 3 insertions, 0 deletions
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();