X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/dc738e7ae6a9c14992279dc2c52f71b14ced53aa..f416d22e97c56eedc8b4303a5aecfffaaa23eb1c:/methods/gzip.cc diff --git a/methods/gzip.cc b/methods/gzip.cc index 35501cb0a..809afc0fc 100644 --- a/methods/gzip.cc +++ b/methods/gzip.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: gzip.cc,v 1.17 2003/02/10 07:34:41 doogie Exp $ +// $Id: gzip.cc,v 1.17.2.1 2004/01/16 18:58:50 mdz Exp $ /* ###################################################################### GZip method - Take a file URI in and decompress it into the target @@ -9,7 +9,6 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#include <apti18n.h> #include <apt-pkg/fileutl.h> #include <apt-pkg/error.h> #include <apt-pkg/acquire-method.h> @@ -21,6 +20,7 @@ #include <utime.h> #include <stdio.h> #include <errno.h> +#include <apti18n.h> /*}}}*/ const char *Prog; @@ -57,7 +57,7 @@ bool GzipMethod::Fetch(FetchItem *Itm) return _error->Errno("pipe",_("Couldn't open pipe for %s"),Prog); // Fork gzip - int Process = ExecFork(); + pid_t Process = ExecFork(); if (Process == 0) { close(GzOut[0]); @@ -154,6 +154,8 @@ bool GzipMethod::Fetch(FetchItem *Itm) int main(int argc, char *argv[]) { + setlocale(LC_ALL, ""); + GzipMethod Mth; Prog = strrchr(argv[0],'/');