From: Micah Cowan Date: Thu, 25 Oct 2007 06:59:30 +0000 (+0200) Subject: Tell xgettext that "ARG1 % ARG2" is not a C format string. X-Git-Tag: v6.9.89~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35eca590ad490d6f2b53b8a2e7dd0ce2fbabe710;p=thirdparty%2Fcoreutils.git Tell xgettext that "ARG1 % ARG2" is not a C format string. * src/expr.c (usage): Add a comment to override xgettext's default behavior, which would classify "ARG1 % ARG2" as a fprintf-style format string. --- diff --git a/ChangeLog b/ChangeLog index 9377791150..b70dd91309 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-10-24 Micah Cowan + + Tell xgettext that "ARG1 % ARG2" is not a C format string. + * src/expr.c (usage): Add a comment to override xgettext's default + behavior, which would classify "ARG1 % ARG2" as a fprintf-style + format string. + 2007-10-24 Jim Meyering Avoid diagnostics from sha1sum when there is no cached checksum. diff --git a/src/expr.c b/src/expr.c index c800065c62..cd498f6451 100644 --- a/src/expr.c +++ b/src/expr.c @@ -128,6 +128,8 @@ separates increasing precedence groups. EXPRESSION may be:\n\ ARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n\ ARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n\ "), stdout); + /* Tell xgettext that the "% A" below is not a printf-style + format string: xgettext:no-c-format */ fputs (_("\ \n\ ARG1 * ARG2 arithmetic product of ARG1 and ARG2\n\