]> git.saurik.com Git - apt.git/commitdiff
Call setlocale and bindtextdomain in the http method
authorMatt Zimmerman <matt.zimmerman@canonical.com>
Wed, 24 Nov 2004 20:08:16 +0000 (20:08 +0000)
committerMatt Zimmerman <matt.zimmerman@canonical.com>
Wed, 24 Nov 2004 20:08:16 +0000 (20:08 +0000)
debian/changelog
methods/http.cc

index 1d6ca252624b13454f20b439a84dba45e37d3153..28279ebf4832930d30a894b496c11fc06e2381c2 100644 (file)
@@ -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)
 
  --
 
index 3bb29cde07d7c42d1658a01c2fe66d4d28617125..68653fbb399b81336c48f4a3c3c43339bed70657 100644 (file)
@@ -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();