diff options
author | Jim Meyering <jim@meyering.net> | 2005-06-16 21:38:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-06-16 21:38:27 +0000 |
commit | a38ee1953f5aabd1bb93fd8479a4e7f191855c31 (patch) | |
tree | ad9e6c394ba788765e436f712795e515af14631e | |
parent | f696c57a8ee46a7df82f860275b88fb329740e69 (diff) | |
download | coreutils-a38ee1953f5aabd1bb93fd8479a4e7f191855c31.tar.xz |
Don't embed `this'-style quotes in format strings.
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
-rw-r--r-- | src/printf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/printf.c b/src/printf.c index df636bfce..746bcb268 100644 --- a/src/printf.c +++ b/src/printf.c @@ -53,8 +53,9 @@ #include "system.h" #include "c-strtod.h" -#include "long-options.h" #include "error.h" +#include "long-options.h" +#include "quote.h" #include "unicodeio.h" #if ! (HAVE_DECL_STRTOIMAX || defined strtoimax) @@ -683,8 +684,8 @@ main (int argc, char **argv) if (argc > 0) error (0, 0, - _("warning: ignoring excess arguments, starting with `%s'"), - argv[0]); + _("warning: ignoring excess arguments, starting with %s"), + quote (argv[0])); exit (exit_status); } |