#include "error.h"
#include "inttostr.h"
#include "long-options.h"
+#include "quote.h"
#include "readtokens.h"
#include "xstrtol.h"
if ((err = xstrtoumax (s, NULL, 10, &n, "")) != LONGINT_OK)
{
if (err == LONGINT_OVERFLOW)
- error (0, 0, _("`%s' is too large"), s);
+ error (0, 0, _("%s is too large"), quote (s));
else
- error (0, 0, _("`%s' is not a valid positive integer"), s);
+ error (0, 0, _("%s is not a valid positive integer"), quote (s));
return false;
}
n_factors = factor (n, MAX_N_FACTORS, factors);
#include "system.h"
#include "error.h"
+#include "quote.h"
#include "vasprintf.h"
#include "xstrtol.h"
}
if (!match_found & reversed)
{
- error (0, 0, _("invalid argument `%s'"), arg - 1);
+ error (0, 0, _("invalid argument %s"), quote (arg - 1));
usage (EXIT_FAILURE);
}
if (!match_found)
{
if (k == argc - 1)
{
- error (0, 0, _("missing argument to `%s'"), arg);
+ error (0, 0, _("missing argument to %s"), quote (arg));
usage (EXIT_FAILURE);
}
match_found = true;
{
if (k == argc - 1)
{
- error (0, 0, _("missing argument to `%s'"), arg);
+ error (0, 0, _("missing argument to %s"), quote (arg));
usage (EXIT_FAILURE);
}
++k;
{
if (k == argc - 1)
{
- error (0, 0, _("missing argument to `%s'"), arg);
+ error (0, 0, _("missing argument to %s"), quote (arg));
usage (EXIT_FAILURE);
}
++k;
{
if (k == argc - 1)
{
- error (0, 0, _("missing argument to `%s'"), arg);
+ error (0, 0, _("missing argument to %s"), quote (arg));
usage (EXIT_FAILURE);
}
++k;
{
if (k == argc - 1)
{
- error (0, 0, _("missing argument to `%s'"), arg);
+ error (0, 0, _("missing argument to %s"), quote (arg));
usage (EXIT_FAILURE);
}
++k;
unsigned long int value;
if (k == argc - 1)
{
- error (0, 0, _("missing argument to `%s'"), arg);
+ error (0, 0, _("missing argument to %s"), quote (arg));
usage (EXIT_FAILURE);
}
++k;
mode.c_line = value = integer_arg (argv[k], ULONG_MAX);
if (mode.c_line != value)
- error (0, 0, _("invalid line discipline `%s'"), argv[k]);
+ error (0, 0, _("invalid line discipline %s"), quote (argv[k]));
require_set_attr = true;
}
#endif
{
if (! recover_mode (arg, &mode))
{
- error (0, 0, _("invalid argument `%s'"), arg);
+ error (0, 0, _("invalid argument %s"), quote (arg));
usage (EXIT_FAILURE);
}
require_set_attr = true;
if (xstrtoul (s, NULL, 0, &value, "bB") != LONGINT_OK
|| maxval < value)
{
- error (0, 0, _("invalid integer argument `%s'"), s);
+ error (0, 0, _("invalid integer argument %s"), quote (s));
usage (EXIT_FAILURE);
}
return value;