summaryrefslogtreecommitdiff
path: root/src/date.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/date.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/date.c')
-rw-r--r--src/date.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/date.c b/src/date.c
index c1136faa4..b2af224bd 100644
--- a/src/date.c
+++ b/src/date.c
@@ -273,7 +273,7 @@ batch_convert (const char *input_filename, const char *format)
{
if (line[line_length - 1] == '\n')
line[line_length - 1] = '\0';
- error (0, 0, _("invalid date `%s'"), line);
+ error (0, 0, _("invalid date %s"), quote (line));
ok = false;
}
else
@@ -384,10 +384,10 @@ main (int argc, char **argv)
&& n_args == 1 && argv[optind][0] != '+')
{
error (0, 0, _("\
-the argument `%s' lacks a leading `+';\n\
+the argument %s lacks a leading `+';\n\
When using an option to specify date(s), any non-option\n\
argument must be a format string beginning with `+'."),
- argv[optind]);
+ quote (argv[optind]));
usage (EXIT_FAILURE);
}
@@ -452,7 +452,7 @@ argument must be a format string beginning with `+'."),
}
if (! valid_date)
- error (EXIT_FAILURE, 0, _("invalid date `%s'"), datestr);
+ error (EXIT_FAILURE, 0, _("invalid date %s"), quote (datestr));
if (set_date)
{