* Patch from Eric Wong <normalperson@yhbt.net> to inclu...
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:04:52 +0000 (17:04 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:04:52 +0000 (17:04 +0000)
Author: mdz
Date: 2004-01-07 20:39:37 GMT
* Patch from Eric Wong <normalperson@yhbt.net> to include apt18n.h after
other headers to avoid breaking locale.h when setlocale() is defined
as an empty macro (Closes: #226509)

16 files changed:
apt-inst/contrib/arfile.cc
apt-inst/contrib/extracttar.cc
apt-inst/deb/debfile.cc
apt-inst/deb/dpkgdb.cc
apt-inst/dirstream.cc
apt-inst/extract.cc
apt-inst/filelist.cc
debian/changelog
methods/cdrom.cc
methods/connect.cc
methods/copy.cc
methods/file.cc
methods/ftp.cc
methods/gzip.cc
methods/http.cc
methods/rsh.cc

index b423eb4..eb70827 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: arfile.cc,v 1.6 2003/07/18 14:15:11 mdz Exp $
+// $Id: arfile.cc,v 1.7 2004/01/07 20:39:37 mdz Exp $
 /* ######################################################################
 
    AR File - Handle an 'AR' archive
 #ifdef __GNUG__
 #pragma implementation "apt-pkg/arfile.h"
 #endif
-#include <apti18n.h>
 #include <apt-pkg/arfile.h>
 #include <apt-pkg/strutl.h>
 #include <apt-pkg/error.h>
 
 #include <stdlib.h>
                                                                        /*}}}*/
+#include <apti18n.h>
 
 struct ARArchive::MemberHeader
 {
index 5d939bd..63bb2ba 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: extracttar.cc,v 1.8 2003/07/18 15:35:23 mdz Exp $
+// $Id: extracttar.cc,v 1.9 2004/01/07 20:39:37 mdz Exp $
 /* ######################################################################
 
    Extract a Tar - Tar Extractor
@@ -19,7 +19,6 @@
 #ifdef __GNUG__
 #pragma implementation "apt-pkg/extracttar.h"
 #endif
-#include <apti18n.h>
 #include <apt-pkg/extracttar.h>
 
 #include <apt-pkg/error.h>
@@ -32,7 +31,9 @@
 #include <signal.h>
 #include <fcntl.h>
 #include <iostream>
+#include <apti18n.h>
                                                                        /*}}}*/
+
 using namespace std;
     
 // The on disk header for a tar file.
index 5c83396..d3a3991 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: debfile.cc,v 1.3 2003/02/10 00:36:12 doogie Exp $
+// $Id: debfile.cc,v 1.4 2004/01/07 20:39:37 mdz Exp $
 /* ######################################################################
 
    Debian Archive File (.deb)
@@ -20,7 +20,6 @@
 #pragma implementation "apt-pkg/debfile.h"
 #endif
 
-#include <apti18n.h>
 #include <apt-pkg/debfile.h>
 #include <apt-pkg/extracttar.h>
 #include <apt-pkg/error.h>
@@ -28,6 +27,7 @@
 
 #include <sys/stat.h>
 #include <unistd.h>
+#include <apti18n.h>
                                                                        /*}}}*/
 
 // DebFile::debDebFile - Constructor                                   /*{{{*/
index f71811a..d06ff63 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: dpkgdb.cc,v 1.7 2003/02/10 00:36:12 doogie Exp $
+// $Id: dpkgdb.cc,v 1.8 2004/01/07 20:39:37 mdz Exp $
 /* ######################################################################
 
    DPKGv1 Database Implemenation
@@ -17,7 +17,6 @@
 #pragma implementation "apt-pkg/dpkgdb.h"
 #endif
 
-#include <apti18n.h>
 #include <apt-pkg/dpkgdb.h>
 #include <apt-pkg/configuration.h>
 #include <apt-pkg/error.h>
@@ -33,6 +32,7 @@
 #include <unistd.h>
 #include <ctype.h>
 #include <iostream>
+#include <apti18n.h>
                                                                        /*}}}*/
 using namespace std;
 
index 721041f..3821156 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: dirstream.cc,v 1.3 2003/02/10 00:36:12 doogie Exp $
+// $Id: dirstream.cc,v 1.4 2004/01/07 20:39:37 mdz Exp $
 /* ######################################################################
 
    Directory Stream 
@@ -15,7 +15,6 @@
 #pragma implementation "apt-pkg/dirstream.h"
 #endif
 
-#include <apti18n.h>
 #include <apt-pkg/dirstream.h>
 #include <apt-pkg/error.h>
 
@@ -25,6 +24,7 @@
 #include <errno.h>
 #include <utime.h>
 #include <unistd.h>
+#include <apti18n.h>
                                                                        /*}}}*/
 
 // DirStream::DoItem - Process an item                                 /*{{{*/
index 437cfbb..d06cd57 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: extract.cc,v 1.6 2003/02/10 00:36:12 doogie Exp $
+// $Id: extract.cc,v 1.7 2004/01/07 20:39:37 mdz Exp $
 /* ######################################################################
 
    Archive Extraction Directory Stream
@@ -47,7 +47,6 @@
 #ifdef __GNUG__
 #pragma implementation "apt-pkg/extract.h"
 #endif
-#include <apti18n.h>
 #include <apt-pkg/extract.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/debversion.h>
@@ -58,6 +57,7 @@
 #include <errno.h>
 #include <dirent.h>
 #include <iostream>
+#include <apti18n.h>
                                                                        /*}}}*/
 using namespace std;
 
index 446b9f5..ee8cbbf 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: filelist.cc,v 1.4 2003/02/10 00:36:12 doogie Exp $
+// $Id: filelist.cc,v 1.5 2004/01/07 20:39:37 mdz Exp $
 /* ######################################################################
 
    File Listing - Manages a Cache of File -> Package names.
@@ -36,7 +36,6 @@
 #pragma implementation "apt-pkg/filelist.h"
 #endif
 
-#include <apti18n.h>
 #include <apt-pkg/filelist.h>
 #include <apt-pkg/mmap.h>
 #include <apt-pkg/error.h>
@@ -46,6 +45,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <iostream>
+#include <apti18n.h>
                                                                        /*}}}*/
 
 using namespace std;
index d638d7f..7a5da17 100644 (file)
@@ -1,3 +1,11 @@
+apt (0.5.21) unstable; urgency=low
+
+  * Patch from Eric Wong <normalperson@yhbt.net> to include apt18n.h after
+    other headers to avoid breaking locale.h when setlocale() is defined
+    as an empty macro (Closes: #226509)
+
+ --
+
 apt (0.5.20) unstable; urgency=low
 
   * Fixed German translations of "Suggested" from Christian Garbs
index f6b0bc6..17872de 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: cdrom.cc,v 1.20 2003/02/10 07:34:41 doogie Exp $
+// $Id: cdrom.cc,v 1.21 2004/01/07 20:39:38 mdz Exp $
 /* ######################################################################
 
    CDROM URI method for APT
@@ -8,7 +8,6 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#include <apti18n.h>
 #include <apt-pkg/acquire-method.h>
 #include <apt-pkg/cdromutl.h>
 #include <apt-pkg/error.h>
@@ -19,6 +18,7 @@
 #include <unistd.h>
 
 #include <iostream>
+#include <apti18n.h>
                                                                        /*}}}*/
 
 using namespace std;
index 23961d8..d1d71b0 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: connect.cc,v 1.10 2003/02/10 07:34:41 doogie Exp $
+// $Id: connect.cc,v 1.11 2004/01/07 20:39:38 mdz Exp $
 /* ######################################################################
 
    Connect - Replacement connect call
@@ -11,7 +11,6 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#include <apti18n.h>
 #include "connect.h"
 #include <apt-pkg/error.h>
 #include <apt-pkg/fileutl.h>
@@ -27,6 +26,7 @@
 #include <netdb.h>
 
 #include "rfc2553emu.h"
+#include <apti18n.h>
                                                                        /*}}}*/
 
 static string LastHost;
index 87e77ed..4cbfa35 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: copy.cc,v 1.7 2003/02/10 07:34:41 doogie Exp $
+// $Id: copy.cc,v 1.8 2004/01/07 20:39:38 mdz Exp $
 /* ######################################################################
 
    Copy URI - This method takes a uri like a file: uri and copies it
@@ -9,7 +9,6 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#include <apti18n.h>
 #include <apt-pkg/fileutl.h>
 #include <apt-pkg/acquire-method.h>
 #include <apt-pkg/error.h>
@@ -17,6 +16,7 @@
 #include <sys/stat.h>
 #include <utime.h>
 #include <unistd.h>
+#include <apti18n.h>
                                                                        /*}}}*/
 
 class CopyMethod : public pkgAcqMethod
index bf7d380..9fc5764 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: file.cc,v 1.9 2003/02/10 07:34:41 doogie Exp $
+// $Id: file.cc,v 1.10 2004/01/07 20:39:38 mdz Exp $
 /* ######################################################################
 
    File URI method for APT
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#include <apti18n.h>
 #include <apt-pkg/acquire-method.h>
 #include <apt-pkg/error.h>
 
 #include <sys/stat.h>
 #include <unistd.h>
+#include <apti18n.h>
                                                                        /*}}}*/
 
 class FileMethod : public pkgAcqMethod
index fb84f3f..cf2838e 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: ftp.cc,v 1.31 2003/08/10 02:24:39 mdz Exp $
+// $Id: ftp.cc,v 1.32 2004/01/07 20:39:38 mdz Exp $
 /* ######################################################################
 
    FTP Aquire Method - This is the FTP aquire method for APT.
@@ -15,7 +15,6 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#include <apti18n.h>
 #include <apt-pkg/fileutl.h>
 #include <apt-pkg/acquire-method.h>
 #include <apt-pkg/error.h>
@@ -30,6 +29,7 @@
 #include <errno.h>
 #include <stdarg.h>
 #include <iostream>
+#include <apti18n.h>
 
 // Internet stuff
 #include <netinet/in.h>
index 35501cb..af1ac46 100644 (file)
@@ -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.18 2004/01/07 20:39:38 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;
index 5cfad08..a5af289 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: http.cc,v 1.56 2003/02/12 15:33:36 doogie Exp $
+// $Id: http.cc,v 1.57 2004/01/07 20:39:38 mdz Exp $
 /* ######################################################################
 
    HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -25,7 +25,6 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#include <apti18n.h>
 #include <apt-pkg/fileutl.h>
 #include <apt-pkg/acquire-method.h>
 #include <apt-pkg/error.h>
@@ -40,6 +39,7 @@
 #include <errno.h>
 #include <string.h>
 #include <iostream>
+#include <apti18n.h>
 
 // Internet stuff
 #include <netdb.h>
index 6cd6182..2292e72 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: rsh.cc,v 1.6 2003/02/10 07:34:41 doogie Exp $
+// $Id: rsh.cc,v 1.7 2004/01/07 20:39:38 mdz Exp $
 /* ######################################################################
 
    RSH method - Transfer files via rsh compatible program
@@ -11,7 +11,6 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#include <apti18n.h>
 #include "rsh.h"
 #include <apt-pkg/error.h>
 
@@ -23,6 +22,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <stdarg.h>
+#include <apti18n.h>
                                                                        /*}}}*/
 
 const char *Prog;