From: Jim Meyering Date: Thu, 16 Jun 2005 21:38:27 +0000 (+0000) Subject: Don't embed `this'-style quotes in format strings. X-Git-Tag: CPPI-1_12~577 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a38ee1953f5aabd1bb93fd8479a4e7f191855c31;p=thirdparty%2Fcoreutils.git Don't embed `this'-style quotes in format strings. Include "quote.h". Rather than this: error (..., "...`%s'...", arg); do this: error (..., "...%s...", quote (arg)); --- diff --git a/src/printf.c b/src/printf.c index df636bfcec..746bcb268c 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); }