aboutsummaryrefslogtreecommitdiff
path: root/src/gdbm_dump.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-05-08 16:27:01 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2013-05-08 16:27:01 +0000
commit6658f41e38fec9e007a0fbd0883e030f6337e28d (patch)
treed7ecc0b72b23a01a2bfa10e8a7bb184d704269dc /src/gdbm_dump.c
parentc0cba983ab0c0bc1de630a200f902189ddddff09 (diff)
downloadgdbm-6658f41e38fec9e007a0fbd0883e030f6337e28d.tar.gz
gdbm-6658f41e38fec9e007a0fbd0883e030f6337e28d.tar.bz2
Rename testgdbm to gdbmtool. Improve documentation.
* configure.ac: Fix a typo. * src/.cvsignore: Add gdbmtool * src/Makefile.am: Rename testgdbm to gdbmtool. Source file not renamed because of CVS deficiency. * src/gdbm_dump.c: Enable NLS. * src/gdbm_load.c: Likewise. * src/testgdbm.c: New option -q (--quiet). New command: prompt. * doc/Makefile.am (man_MANS): Add new manpages. * doc/gdbmtool.1: New file. * doc/gdbm_load.1: New file. * doc/gdbm_dump.1: New file. * doc/gdbm.3: Update. * doc/gdbm.texinfo: Update.
Diffstat (limited to 'src/gdbm_dump.c')
-rw-r--r--src/gdbm_dump.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gdbm_dump.c b/src/gdbm_dump.c
index 9120f04..d6318b1 100644
--- a/src/gdbm_dump.c
+++ b/src/gdbm_dump.c
@@ -19,13 +19,13 @@
# include "gdbmapp.h"
# include "gdbmdefs.h"
char *parseopt_program_doc = "dump a GDBM database to a file";
char *parseopt_program_args = "DB_FILE [FILE]";
struct gdbm_option optab[] = {
- { 'H', "format", N_("0|1"), N_("select dump format") },
+ { 'H', "format", "binary|ascii|0|1", N_("select dump format") },
{ 0 }
};
int format = GDBM_DUMP_FMT_ASCII;
int
@@ -33,12 +33,18 @@ main (int argc, char **argv)
{
GDBM_FILE dbf;
int rc, opt;
char *dbname, *filename;
FILE *fp;
+#ifdef HAVE_SETLOCALE
+ setlocale (LC_ALL, "");
+#endif
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
set_progname (argv[0]);
for (opt = parseopt_first (argc, argv, optab);
opt != EOF;
opt = parseopt_next ())
{

Return to:

Send suggestions and report system problems to the System administrator.