summaryrefslogtreecommitdiff
path: root/src/ptx.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/ptx.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/ptx.c')
-rw-r--r--src/ptx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ptx.c b/src/ptx.c
index f53a6621b..a01175ded 100644
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -407,7 +407,7 @@ alloc_and_compile_regex (const char *string)
message = re_compile_pattern (string, (int) strlen (string), pattern);
if (message)
- error (EXIT_FAILURE, 0, _("%s (for regexp `%s')"), message, string);
+ error (EXIT_FAILURE, 0, _("%s (for regexp %s)"), message, quote (string));
/* The fastmap should be compiled before `re_match'. The following
call is not mandatory, because `re_search' is always called sooner,