From a38ee1953f5aabd1bb93fd8479a4e7f191855c31 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 16 Jun 2005 21:38:27 +0000 Subject: [PATCH] Don't embed `this'-style quotes in format strings. Include "quote.h". Rather than this: error (..., "...`%s'...", arg); do this: error (..., "...%s...", quote (arg)); --- src/printf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } -- 2.47.3