summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-16 21:33:43 +0000
committerJim Meyering <jim@meyering.net>2005-06-16 21:33:43 +0000
commit3787d01a51c110a513e9b6fafa6c5c641399f2ce (patch)
treec49427a07fa046ae09d5f9fcef4c8c6b1ffb0f7f /src/csplit.c
parent0441b743b0e89b12900f9085600846d2e5d0ceaf (diff)
downloadcoreutils-3787d01a51c110a513e9b6fafa6c5c641399f2ce.tar.xz
Don't embed `this'-style quotes in format strings.
Rather than this: error (..., "...`%s'...", arg); do this: error (..., "...%s...", quote (arg));
Diffstat (limited to 'src/csplit.c')
-rw-r--r--src/csplit.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/csplit.c b/src/csplit.c
index d49e30eb1..d7e2f208f 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -710,8 +710,8 @@ handle_line_error (const struct control *p, uintmax_t repetition)
{
char buf[INT_BUFSIZE_BOUND (uintmax_t)];
- fprintf (stderr, _("%s: `%s': line number out of range"),
- program_name, umaxtostr (p->lines_required, buf));
+ fprintf (stderr, _("%s: %s: line number out of range"),
+ program_name, quote (umaxtostr (p->lines_required, buf)));
if (repetition)
fprintf (stderr, _(" on repetition %s\n"), umaxtostr (repetition, buf));
else
@@ -756,8 +756,8 @@ static void regexp_error (struct control *, uintmax_t, bool) ATTRIBUTE_NORETURN;
static void
regexp_error (struct control *p, uintmax_t repetition, bool ignore)
{
- fprintf (stderr, _("%s: `%s': match not found"),
- program_name, global_argv[p->argnum]);
+ fprintf (stderr, _("%s: %s: match not found"),
+ program_name, quote (global_argv[p->argnum]));
if (repetition)
{
@@ -985,7 +985,7 @@ close_output_file (void)
{
if (ferror (output_stream))
{
- error (0, 0, _("write error for `%s'"), output_filename);
+ error (0, 0, _("write error for %s"), quote (output_filename));
output_stream = NULL;
cleanup_fatal ();
}
@@ -1172,14 +1172,14 @@ parse_patterns (int argc, int start, char **argv)
{
char buf[INT_BUFSIZE_BOUND (uintmax_t)];
error (EXIT_FAILURE, 0,
- _("line number `%s' is smaller than preceding line number, %s"),
- argv[i], umaxtostr (last_val, buf));
+ _("line number %s is smaller than preceding line number, %s"),
+ quote (argv[i]), umaxtostr (last_val, buf));
}
if (val == last_val)
error (0, 0,
- _("warning: line number `%s' is the same as preceding line number"),
- argv[i]);
+ _("warning: line number %s is the same as preceding line number"),
+ quote (argv[i]));
last_val = val;