From: Jim Meyering Date: Thu, 16 Jun 2005 21:35:40 +0000 (+0000) Subject: Don't embed `this'-style quotes in format strings. X-Git-Tag: CPPI-1_12~580 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d2d749ee627d388c4d1b55d168a7c30a626ab1d;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/sleep.c b/src/sleep.c index 6935b5a54a..8ff3b3b452 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -1,5 +1,5 @@ /* sleep - delay for a specified amount of time. - Copyright (C) 84, 1991-1997, 1999-2004 Free Software Foundation, Inc. + Copyright (C) 84, 1991-1997, 1999-2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,6 +25,7 @@ #include "c-strtod.h" #include "error.h" #include "long-options.h" +#include "quote.h" #include "xnanosleep.h" #include "xstrtod.h" @@ -134,7 +135,7 @@ main (int argc, char **argv) /* Check any suffix char and update S based on the suffix. */ || ! apply_suffix (&s, *p)) { - error (0, 0, _("invalid time interval `%s'"), argv[i]); + error (0, 0, _("invalid time interval %s"), quote (argv[i])); ok = false; }