diff options
author | Jim Meyering <meyering@redhat.com> | 2012-01-07 18:30:14 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-01-09 21:50:08 +0100 |
commit | 36b9a1b6ac2730e78c14552fd55795fe10862a3d (patch) | |
tree | 193aeae1bfea1c96e1cd7226a51208d396bb4ec2 /src/pr.c | |
parent | ae2b0d2ddca458eb282bb0458987e75e1875a659 (diff) | |
download | coreutils-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/pr.c')
-rw-r--r-- | src/pr.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -909,7 +909,7 @@ main (int argc, char **argv) { /* dominates old opt +... */ if (! optarg) error (EXIT_FAILURE, 0, - _("`--pages=FIRST_PAGE[:LAST_PAGE]' missing argument")); + _("'--pages=FIRST_PAGE[:LAST_PAGE]' missing argument")); else if (! first_last_page (oi, 0, optarg)) error (EXIT_FAILURE, 0, _("invalid page range %s"), quote (optarg)); @@ -976,7 +976,7 @@ main (int argc, char **argv) || tmp_long <= 0 || tmp_long > INT_MAX) { error (EXIT_FAILURE, 0, - _("`-l PAGE_LENGTH' invalid number of lines: %s"), + _("'-l PAGE_LENGTH' invalid number of lines: %s"), quote (optarg)); } lines_per_page = tmp_long; @@ -1000,7 +1000,7 @@ main (int argc, char **argv) || tmp_long > INT_MAX) { error (EXIT_FAILURE, 0, - _("`-N NUMBER' invalid starting line number: %s"), + _("'-N NUMBER' invalid starting line number: %s"), quote (optarg)); } start_line_num = tmp_long; @@ -1012,7 +1012,7 @@ main (int argc, char **argv) if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK || tmp_long < 0 || tmp_long > INT_MAX) error (EXIT_FAILURE, 0, - _("`-o MARGIN' invalid line offset: %s"), quote (optarg)); + _("'-o MARGIN' invalid line offset: %s"), quote (optarg)); chars_per_margin = tmp_long; break; } @@ -1053,7 +1053,7 @@ main (int argc, char **argv) if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK || tmp_long <= 0 || tmp_long > INT_MAX) error (EXIT_FAILURE, 0, - _("`-w PAGE_WIDTH' invalid number of characters: %s"), + _("'-w PAGE_WIDTH' invalid number of characters: %s"), quote (optarg)); if (!truncate_lines) chars_per_line = tmp_long; @@ -1067,7 +1067,7 @@ main (int argc, char **argv) if (xstrtol (optarg, NULL, 10, &tmp_long, "") != LONGINT_OK || tmp_long <= 0 || tmp_long > INT_MAX) error (EXIT_FAILURE, 0, - _("`-W PAGE_WIDTH' invalid number of characters: %s"), + _("'-W PAGE_WIDTH' invalid number of characters: %s"), quote (optarg)); chars_per_line = tmp_long; break; @@ -1197,7 +1197,7 @@ getoptarg (char *arg, char switch_char, char *character, int *number) || tmp_long <= 0 || tmp_long > INT_MAX) { error (0, 0, - _("`-%c' extra characters or invalid number in the argument: %s"), + _("'-%c' extra characters or invalid number in the argument: %s"), switch_char, quote (arg)); usage (EXIT_FAILURE); } |