summaryrefslogtreecommitdiff
path: root/src/tr.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-01-07 18:30:14 +0100
committerJim Meyering <meyering@redhat.com>2012-01-09 21:50:08 +0100
commit36b9a1b6ac2730e78c14552fd55795fe10862a3d (patch)
tree193aeae1bfea1c96e1cd7226a51208d396bb4ec2 /src/tr.c
parentae2b0d2ddca458eb282bb0458987e75e1875a659 (diff)
downloadcoreutils-36b9a1b6ac2730e78c14552fd55795fe10862a3d.tar.xz
maint: adjust quoting: emit '...', not `...' in diagnostics
* src/csplit.c (parse_repeat_count, extract_regexp): As above. * src/date.c (main): Likewise. * src/ls.c (decode_switches): Likewise. * src/od.c (decode_one_format, main): Likewise. * src/pathchk.c (no_leading_hyphen): Likewise. * src/pr.c (main, getoptarg): Likewise. * src/rm.c (diagnose_leading_hyphen): Likewise. * src/sort.c (key_warnings, incompatible_options, main): Likewise. * src/stat.c (print_esc_char): Print '\x', not `\x' in diagnostic. * src/test.c (main): Likewise. * src/touch.c (main): Likewise. * src/tr.c (build_spec_list, validate, append_range): Likewise. * tests/misc/mktemp: This is an unusual case, since the affected string contains only the ` of an `...' string. So we change the long ` to a lone '. * tests/pr/pr-tests: Manual quote adapting fix-up. * tests/ln/hard-to-sym: Likewise. * tests/split/suffix-length: Likewise. * tests/mv/part-fail: Likewise. * tests/misc/chcon: Likewise. * tests/misc/stat-printf: Likewise.
Diffstat (limited to 'src/tr.c')
-rw-r--r--src/tr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tr.c b/src/tr.c
index 5dc065cf8..7efb0e389 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -670,7 +670,7 @@ append_range (struct Spec_list *list, unsigned char first, unsigned char last)
char *tmp2 = make_printable_char (last);
error (0, 0,
- _("range-endpoints of `%s-%s' are in reverse collating sequence order"),
+ _("range-endpoints of '%s-%s' are in reverse collating sequence order"),
tmp1, tmp2);
free (tmp1);
free (tmp2);
@@ -907,10 +907,10 @@ build_spec_list (const struct E_string *es, struct Spec_list *result)
if (opnd_str_len == 0)
{
if (p[i + 1] == ':')
- error (0, 0, _("missing character class name `[::]'"));
+ error (0, 0, _("missing character class name '[::]'"));
else
error (0, 0,
- _("missing equivalence class character `[==]'"));
+ _("missing equivalence class character '[==]'"));
return false;
}
@@ -1503,7 +1503,7 @@ when translating"));
{
error (EXIT_FAILURE, 0,
_("when translating, the only character classes that may \
-appear in\nstring2 are `upper' and `lower'"));
+appear in\nstring2 are 'upper' and 'lower'"));
}
validate_case_classes (s1, s2);