X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/d77559acad5da864e764aef8aed08046e4d38ed4..3226f06e15d6c9816c26e87bb58f5589b84a467b:/methods/gzip.cc diff --git a/methods/gzip.cc b/methods/gzip.cc index af1ac465e..809afc0fc 100644 --- a/methods/gzip.cc +++ b/methods/gzip.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: gzip.cc,v 1.18 2004/01/07 20:39:38 mdz 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 @@ -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],'/');