From e2bd5cda0a341b35c79ba1484bd71e932c74b456 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 16 May 2012 07:26:36 +0200 Subject: [PATCH] maint: tell xgettext that fputs arg "93% of..." is not a C format string MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/fmt.c (usage): Add a comment to tell xgettext that the "% o" in fputs argument string of "...93% of..." is not a C format string. Reported by Toomas Soome, Göran Uddeborg, Petr Pisar, Primoz PETERLIN and Chusslove Illich via http://bugs.gnu.org/11470 --- THANKS.in | 4 ++++ src/fmt.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/THANKS.in b/THANKS.in index f3a0c90dbf..4dd8e44478 100644 --- a/THANKS.in +++ b/THANKS.in @@ -121,6 +121,7 @@ Christian Rose menthos@menthos.com Christian von Roques roques@pond.sub.org Christophe LYON christophe.lyon@st.com Chuck Hedrick hedrick@klinzhai.rutgers.edu +Chusslove Illich caslav.ilic@gmx.net Clark Morgan cmorgan@aracnet.com Clement Wang clem.wang@overture.com Colin Plumb colin@nyx.net @@ -483,6 +484,7 @@ Peter Horst peter@ointment.org Peter Moulder reiter@netspace.net.au Peter Samuelson psamuels@sampo.creighton.edu Peter Seebach seebs@taniemarie.solon.com +Petr Pisar petr.pisar@atlas.cz Petr Uzel petr.uzel@suse.cz Petter Reinholdtsen pere@hungry.com Phelippe Neveu pneveu@pcigeomatics.com @@ -497,6 +499,7 @@ Piotr Gackiewicz gacek@intertele.pl Piotr Kwapulinski kwap@univ.gda.pl Prashant TR tr@eth.net Priit Jõerüüt jemm4jemm@yahoo.com +Primoz PETERLIN primozz.peterlin@gmail.com Rainer Orth ro@TechFak.Uni-Bielefeld.DE Ralf W. Stephan stephan@tmt.de Ralph Loader loader@maths.ox.ac.uk @@ -594,6 +597,7 @@ Ton Nijkes ton@murphy.nl Tony Kocurko akocurko@mun.ca Tony Leneis tony@plaza.ds.adp.com Tony Robinson ajr@eng.cam.ac.uk +Toomas Soome Toomas.Soome@Elion.ee Toralf Förster toralf.foerster@gmx.de Torbjorn Granlund tege@nada.kth.se Torbjorn Lindgren tl@funcom.no diff --git a/src/fmt.c b/src/fmt.c index 3da198e162..3e936547e4 100644 --- a/src/fmt.c +++ b/src/fmt.c @@ -283,6 +283,8 @@ Mandatory arguments to long options are mandatory for short options too.\n\ -s, --split-only split long lines, but do not refill\n\ "), stdout); + /* Tell xgettext that the "% o" below is not a printf-style + format string: xgettext:no-c-format */ fputs (_("\ -t, --tagged-paragraph indentation of first line different from second\n\ -u, --uniform-spacing one space between words, two after sentences\n\ -- 2.47.2