summaryrefslogtreecommitdiff
path: root/src/man-recode.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2022-10-15 15:01:16 +0100
committerColin Watson <cjwatson@debian.org>2022-10-15 15:10:54 +0100
commitafa1e3c7183a97f109e12dbebdb442a1066c1716 (patch)
tree1a8f804dc19d3a075311b9a111aefa73c6ee4121 /src/man-recode.c
parent54d211aeedb2179b23ce4fe22e3476567339d23c (diff)
parent175b15a789c92ea810f2d60f51725c44abf31efd (diff)
New upstream release (2.11.0)
Diffstat (limited to 'src/man-recode.c')
-rw-r--r--src/man-recode.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/man-recode.c b/src/man-recode.c
index 9d59bfa1..e198d175 100644
--- a/src/man-recode.c
+++ b/src/man-recode.c
@@ -52,6 +52,7 @@
#include "pipeline.h"
#include "cleanup.h"
+#include "compression.h"
#include "debug.h"
#include "encodings.h"
#include "fatal.h"
@@ -59,7 +60,6 @@
#include "sandbox.h"
#include "util.h"
-#include "compression.h"
#include "decompress.h"
#include "manconv.h"
#include "manconv_client.h"
@@ -110,14 +110,14 @@ static const char args_doc[] =
N_("-t CODE {--suffix SUFFIX | --in-place} FILENAME...");
static struct argp_option options[] = {
- { "to-code", 't', N_("CODE"), 0, N_("encoding for output") },
- { "suffix", OPT_SUFFIX,
- N_("SUFFIX"), 0, N_("suffix to append to output file name") },
- { "in-place", OPT_IN_PLACE,
- 0, 0, N_("overwrite input files in place") },
- { "debug", 'd', 0, 0, N_("emit debugging messages") },
- { "quiet", 'q', 0, 0, N_("produce fewer warnings") },
- { 0, 'h', 0, OPTION_HIDDEN, 0 }, /* compatibility for --help */
+ OPT ("to-code", 't', N_("CODE"), N_("encoding for output")),
+ OPT ("suffix", OPT_SUFFIX, N_("SUFFIX"),
+ N_("suffix to append to output file name")),
+ OPT ("in-place", OPT_IN_PLACE, 0,
+ N_("overwrite input files in place")),
+ OPT ("debug", 'd', 0, N_("emit debugging messages")),
+ OPT ("quiet", 'q', 0, N_("produce fewer warnings")),
+ OPT_HELP_COMPAT,
{ 0 }
};
@@ -185,7 +185,7 @@ static void recode (const char *filename)
dirname = dir_name (filename);
basename = base_name (filename);
- comp = comp_info (basename, 1);
+ comp = comp_info (basename, true);
if (comp)
stem = comp->stem; /* steal memory */
else