]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-config.cc
Add support to debian/rules to update config.sub and co...
[apt.git] / cmdline / apt-config.cc
index 327700e1c54dda2205e9d6a54ea8610dee0cff71..9a937a10fe76c9fa17327131f7047d7a67c30581 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-config.cc,v 1.7 2001/02/20 07:03:17 jgg Exp $
+// $Id: apt-config.cc,v 1.10 2002/11/09 17:11:25 doogie Exp $
 /* ######################################################################
    
    APT Config - Program to manipulate APT configuration files
@@ -23,7 +23,8 @@
 
 #include <config.h>
 #include <apti18n.h>
-    
+
+#include <locale.h>
 #include <iostream>
 #include <string>
                                                                        /*}}}*/
@@ -56,7 +57,7 @@ bool DoShell(CommandLine &CmdL)
 /* */
 bool DoDump(CommandLine &CmdL)
 {
-   _config->Dump();
+   _config->Dump(cout);
    return true;
 }
                                                                        /*}}}*/
@@ -98,7 +99,11 @@ int main(int argc,const char *argv[])
    CommandLine::Dispatch Cmds[] = {{"shell",&DoShell},
                                    {"dump",&DoDump},
                                    {0,0}};
-   
+
+   // Set up gettext support
+   setlocale(LC_ALL,"");
+   textdomain(PACKAGE);
+
    // Parse the command line and initialize the package library
    CommandLine CmdL(Args,_config);
    if (pkgInitConfig(*_config) == false ||