#include "hard-locale.h"
#include "inttostr.h"
#include "mbswidth.h"
+#include "quote.h"
#include "stdio-safer.h"
#include "strftime.h"
#include "xstrtol.h"
if (xstrtol (s, NULL, 10, &tmp_long, "") != LONGINT_OK
|| !(1 <= tmp_long && tmp_long <= INT_MAX))
error (EXIT_FAILURE, 0,
- _("invalid number of columns: `%s'"), s);
+ _("invalid number of columns: %s"), quote (s));
columns = tmp_long;
explicit_columns = true;
error (EXIT_FAILURE, 0,
_("`--pages=FIRST_PAGE[:LAST_PAGE]' missing argument"));
else if (! first_last_page (optarg))
- error (EXIT_FAILURE, 0, _("Invalid page range `%s'"), optarg);
+ error (EXIT_FAILURE, 0, _("Invalid page range %s"), quote (optarg));
break;
}
|| tmp_long <= 0 || tmp_long > INT_MAX)
{
error (EXIT_FAILURE, 0,
- _("`-l PAGE_LENGTH' invalid number of lines: `%s'"),
- optarg);
+ _("`-l PAGE_LENGTH' invalid number of lines: %s"),
+ quote (optarg));
}
lines_per_page = tmp_long;
break;
|| tmp_long > INT_MAX)
{
error (EXIT_FAILURE, 0,
- _("`-N NUMBER' invalid starting line number: `%s'"),
- optarg);
+ _("`-N NUMBER' invalid starting line number: %s"),
+ quote (optarg));
}
start_line_num = tmp_long;
break;
if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK
|| tmp_long < 0 || tmp_long > INT_MAX)
error (EXIT_FAILURE, 0,
- _("`-o MARGIN' invalid line offset: `%s'"), optarg);
+ _("`-o MARGIN' invalid line offset: %s"), quote (optarg));
chars_per_margin = tmp_long;
break;
}
if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK
|| tmp_long <= 0 || tmp_long > INT_MAX)
error (EXIT_FAILURE, 0,
- _("`-w PAGE_WIDTH' invalid number of characters: `%s'"),
- optarg);
+ _("`-w PAGE_WIDTH' invalid number of characters: %s"),
+ quote (optarg));
if (!truncate_lines)
chars_per_line = tmp_long;
break;
if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK
|| tmp_long <= 0 || tmp_long > INT_MAX)
error (EXIT_FAILURE, 0,
- _("`-W PAGE_WIDTH' invalid number of characters: `%s'"),
- optarg);
+ _("`-W PAGE_WIDTH' invalid number of characters: %s"),
+ quote (optarg));
chars_per_line = tmp_long;
break;
}
|| tmp_long <= 0 || tmp_long > INT_MAX)
{
error (0, 0,
- _("`-%c' extra characters or invalid number in the argument: `%s'"),
- switch_char, arg);
+ _("`-%c' extra characters or invalid number in the argument: %s"),
+ switch_char, quote (arg));
usage (EXIT_FAILURE);
}
*number = tmp_long;