summaryrefslogtreecommitdiff
path: root/src/sort.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/sort.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/sort.c')
-rw-r--r--src/sort.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sort.c b/src/sort.c
index 7ba36ca33..2b583d21c 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -1985,8 +1985,8 @@ static void badfieldspec (char const *, char const *)
static void
badfieldspec (char const *spec, char const *msgid)
{
- error (SORT_FAILURE, 0, _("%s: invalid field specification `%s'"),
- _(msgid), spec);
+ error (SORT_FAILURE, 0, _("%s: invalid field specification %s"),
+ _(msgid), quote (spec));
abort ();
}
@@ -2018,8 +2018,8 @@ parse_field_count (char const *string, size_t *val, char const *msgid)
case LONGINT_INVALID:
if (msgid)
- error (SORT_FAILURE, 0, _("%s: invalid count at start of `%s'"),
- _(msgid), string);
+ error (SORT_FAILURE, 0, _("%s: invalid count at start of %s"),
+ _(msgid), quote (string));
return NULL;
}
@@ -2360,8 +2360,8 @@ main (int argc, char **argv)
"multi-character tab" instead of "multibyte tab", so
that the diagnostic's wording does not need to be
changed once multibyte characters are supported. */
- error (SORT_FAILURE, 0, _("multi-character tab `%s'"),
- optarg);
+ error (SORT_FAILURE, 0, _("multi-character tab %s"),
+ quote (optarg));
}
}
if (tab != TAB_DEFAULT && tab != newtab)