// -*- 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.11 2003/01/11 07:18:44 jgg Exp $
/* ######################################################################
APT Config - Program to manipulate APT configuration files
#include <config.h>
#include <apti18n.h>
-
+
+#include <locale.h>
#include <iostream>
#include <string>
/*}}}*/
+using namespace std;
// DoShell - Handle the shell command /*{{{*/
// ---------------------------------------------------------------------
/* */
bool DoDump(CommandLine &CmdL)
{
- _config->Dump();
+ _config->Dump(cout);
return true;
}
/*}}}*/
"Options:\n"
" -h This help text.\n"
" -c=? Read this configuration file\n"
- " -o=? Set an arbitary configuration option, eg -o dir::cache=/tmp\n");
+ " -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp\n");
return 0;
}
/*}}}*/
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 ||