summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMicah Cowan <micah@cowan.name>2007-10-25 08:59:30 +0200
committerJim Meyering <meyering@redhat.com>2007-10-25 08:59:30 +0200
commit35eca590ad490d6f2b53b8a2e7dd0ce2fbabe710 (patch)
tree6e740b07613a1b0cef4518b73dafbd0c6468f62c /src
parentedb5faa2970d57681ae9ba41d98df7f210d82587 (diff)
downloadcoreutils-35eca590ad490d6f2b53b8a2e7dd0ce2fbabe710.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/expr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c
index c800065c6..cd498f645 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\