summaryrefslogtreecommitdiff
path: root/src/tr.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-16 21:28:41 +0000
committerJim Meyering <jim@meyering.net>2005-06-16 21:28:41 +0000
commit0441b743b0e89b12900f9085600846d2e5d0ceaf (patch)
treeadcf7d04a78c94c027f57bba59bad23902fc54c8 /src/tr.c
parente50dc3f9fbb3b86bccefedc6712f0d711d6bf2ad (diff)
downloadcoreutils-0441b743b0e89b12900f9085600846d2e5d0ceaf.tar.xz
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
Diffstat (limited to 'src/tr.c')
-rw-r--r--src/tr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tr.c b/src/tr.c
index 053f91ec2..b7d0ebe38 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -1,5 +1,5 @@
/* tr -- a filter to translate characters
- Copyright (C) 91, 1995-2004 Free Software Foundation, Inc.
+ Copyright (C) 91, 1995-2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -834,8 +834,8 @@ find_bracketed_repeat (const struct E_string *es, size_t start_idx,
{
char *tmp = make_printable_str (digit_str, digit_str_len);
error (0, 0,
- _("invalid repeat count `%s' in [c*n] construct"),
- tmp);
+ _("invalid repeat count %s in [c*n] construct"),
+ quote (tmp));
free (tmp);
return -2;
}
@@ -933,8 +933,8 @@ build_spec_list (const struct E_string *es, struct Spec_list *result)
{
char *tmp = make_printable_str (opnd_str,
opnd_str_len);
- error (0, 0, _("invalid character class `%s'"),
- tmp);
+ error (0, 0, _("invalid character class %s"),
+ quote (tmp));
free (tmp);
return false;
}