summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorMatt Zimmerman <matt.zimmerman@canonical.com>2004-11-27 22:11:03 +0000
committerMatt Zimmerman <matt.zimmerman@canonical.com>2004-11-27 22:11:03 +0000
commitb25423f6636a17f61a50ea03ad6bda42125f0323 (patch)
tree58eb307a6a7743dd4e55902646f9c6a1b8d52330 /methods
parentf09ed20d3c489419d920f9a27149f4da8ca22f36 (diff)
Call setlocale in all methods, don't call bindtextdomain in http
Diffstat (limited to 'methods')
-rw-r--r--methods/cdrom.cc2
-rw-r--r--methods/copy.cc2
-rw-r--r--methods/file.cc2
-rw-r--r--methods/ftp.cc2
-rw-r--r--methods/gzip.cc2
-rw-r--r--methods/http.cc1
-rw-r--r--methods/rsh.cc2
7 files changed, 12 insertions, 1 deletions
diff --git a/methods/cdrom.cc b/methods/cdrom.cc
index 17872de29..0d8fdc29c 100644
--- a/methods/cdrom.cc
+++ b/methods/cdrom.cc
@@ -187,6 +187,8 @@ bool CDROMMethod::Fetch(FetchItem *Itm)
int main()
{
+ setlocale(LC_ALL, "");
+
CDROMMethod Mth;
return Mth.Run();
}
diff --git a/methods/copy.cc b/methods/copy.cc
index 4cbfa3532..3f367e72a 100644
--- a/methods/copy.cc
+++ b/methods/copy.cc
@@ -86,6 +86,8 @@ bool CopyMethod::Fetch(FetchItem *Itm)
int main()
{
+ setlocale(LC_ALL, "");
+
CopyMethod Mth;
return Mth.Run();
}
diff --git a/methods/file.cc b/methods/file.cc
index 9fc5764d6..76fd64d86 100644
--- a/methods/file.cc
+++ b/methods/file.cc
@@ -83,6 +83,8 @@ bool FileMethod::Fetch(FetchItem *Itm)
int main()
{
+ setlocale(LC_ALL, "");
+
FileMethod Mth;
return Mth.Run();
}
diff --git a/methods/ftp.cc b/methods/ftp.cc
index cf2838e3f..0f222272d 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -1083,6 +1083,8 @@ bool FtpMethod::Fetch(FetchItem *Itm)
int main(int argc,const char *argv[])
{
+ setlocale(LC_ALL, "");
+
/* See if we should be come the http client - we do this for http
proxy urls */
if (getenv("ftp_proxy") != 0)
diff --git a/methods/gzip.cc b/methods/gzip.cc
index af1ac465e..ac64f33f8 100644
--- a/methods/gzip.cc
+++ b/methods/gzip.cc
@@ -154,6 +154,8 @@ bool GzipMethod::Fetch(FetchItem *Itm)
int main(int argc, char *argv[])
{
+ setlocale(LC_ALL, "");
+
GzipMethod Mth;
Prog = strrchr(argv[0],'/');
diff --git a/methods/http.cc b/methods/http.cc
index e53667c07..f9358990c 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1184,7 +1184,6 @@ int HttpMethod::Loop()
int main()
{
setlocale(LC_ALL, "");
- bindtextdomain(APT_DOMAIN, _config->FindDir("Dir::Locale").c_str());
HttpMethod Mth;
diff --git a/methods/rsh.cc b/methods/rsh.cc
index 2292e72e4..c742a6eaf 100644
--- a/methods/rsh.cc
+++ b/methods/rsh.cc
@@ -511,6 +511,8 @@ bool RSHMethod::Fetch(FetchItem *Itm)
int main(int argc, const char *argv[])
{
+ setlocale(LC_ALL, "");
+
RSHMethod Mth;
Prog = strrchr(argv[0],'/');
Prog++;