GNU bug report logs - #11470
bug in 8.17 pot file

Previous Next

Package: coreutils;

Reported by: Toomas Soome <Toomas.Soome <at> Elion.ee>

Date: Mon, 14 May 2012 17:52:01 UTC

Severity: normal

Merged with 11471, 11472, 11483, 11494, 11740

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #45 received at 11470 <at> debbugs.gnu.org (full text, mbox):

From: Göran Uddeborg <goeran <at> uddeborg.se>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: bug-gnu-gettext <at> gnu.org, 11470 <at> debbugs.gnu.org
Subject: Re: bug#11470: bug in 8.17 pot file
Date: Thu, 17 May 2012 20:39:48 +0200
Pádraig Brady:
> Why does xgettext even think fputs takes a printf format?

I don't think it does.  I think it doesn't know anything about fputs
at all, so it tries to guess.  If there is something that looks like a
printf directive in the message, it is guessed to be c-format,
otherwise not.

In a simple test I found that

  fputs(_("Hello world"), stdout);

is not considered c-format, but

  fputs(_("Hello %orld"), stdout);

is.  If I use printf instead of fputs, it is considered c-format in
both cases.  xgettext does know by default that printf's first
argument is c-format.

> I've CC'd
> the gettext bug list so that we won't have to
> worry about it going forward.

:-) I actually also sent a message to that list a little while ago,
suggesting they add flags by default for the other stdio functions.
(puts, fputs and fwrite came to mind)




This bug report was last modified 12 years and 343 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.