1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-06 00:29:44 +02:00

Don't embed `this'-style quotes in format strings.

Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this:          error (..., "...%s...", quote (arg));
This commit is contained in:
Jim Meyering
2005-06-16 21:40:43 +00:00
parent 0919e29116
commit 0cda9b5eb8
+2 -1
View File
@@ -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;
}