From: Jim Meyering Date: Thu, 16 Jun 2005 21:40:43 +0000 (+0000) Subject: Don't embed `this'-style quotes in format strings. X-Git-Tag: CPPI-1_12~575 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0cda9b5eb8a8b9e297a95817f02bda12c21de94e;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/cat.c b/src/cat.c index aaae901b4b..8f1b2bfc5f 100644 --- a/src/cat.c +++ b/src/cat.c @@ -34,6 +34,7 @@ #include "error.h" #include "full-write.h" #include "getpagesize.h" +#include "quote.h" #include "safe-read.h" /* The official name of this program (e.g., no `g' prefix). */ @@ -313,7 +314,7 @@ cat ( use_fionread = false; else { - error (0, errno, _("cannot do ioctl on `%s'"), infile); + error (0, errno, _("cannot do ioctl on %s"), quote (infile)); newlines2 = newlines; return false; }