@@ -1,7 +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)
+ * Call setlocale in the http methods, so that the messages are properly
+ localised (Closes: #282700)
--
@@ -187,6 +187,8 @@ bool CDROMMethod::Fetch(FetchItem *Itm)
int main()
{
+ setlocale(LC_ALL, "");
+
CDROMMethod Mth;
return Mth.Run();
}
@@ -86,6 +86,8 @@ bool CopyMethod::Fetch(FetchItem *Itm)
CopyMethod Mth;
@@ -83,6 +83,8 @@ bool FileMethod::Fetch(FetchItem *Itm)
FileMethod Mth;
@@ -1083,6 +1083,8 @@ bool FtpMethod::Fetch(FetchItem *Itm)
int main(int argc,const char *argv[])
/* See if we should be come the http client - we do this for http
proxy urls */
if (getenv("ftp_proxy") != 0)
@@ -154,6 +154,8 @@ bool GzipMethod::Fetch(FetchItem *Itm)
int main(int argc, char *argv[])
GzipMethod Mth;
Prog = strrchr(argv[0],'/');
@@ -1184,7 +1184,6 @@ int HttpMethod::Loop()
setlocale(LC_ALL, "");
- bindtextdomain(APT_DOMAIN, _config->FindDir("Dir::Locale").c_str());
HttpMethod Mth;
@@ -511,6 +511,8 @@ bool RSHMethod::Fetch(FetchItem *Itm)
int main(int argc, const char *argv[])
RSHMethod Mth;
Prog++;