[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] no-c-format flag by default for puts and fputs
From: |
Göran Uddeborg |
Subject: |
[bug-gettext] no-c-format flag by default for puts and fputs |
Date: |
Thu, 17 May 2012 19:00:52 +0200 |
In the gettext manual there is a comment that strings are sometimes
printed using printf when fputs could have been used
(http://www.gnu.org/software/gettext/manual/gettext.html#c_002dformat-Flag).
This is a problem if the original string is not considered to be
c-format, but the translated string contains signs that would be
interpreted by printf.
Recently there was an example of the reverse problem in a coreutils
message. A string that was written using fputs was considered
c-format, which made translating difficult.
(http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11470 and a number of
duplicates)
xgettext has a number of predefined c-format flags for the stdio
functions in gettext-tools/src/x-c.c. Wouldn't it make sense to add
no-c-format flags to the list for the non-formatting stdio functions
like puts, fputs, and maybe fwrite? Or would that be the wrong way to
do it?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-gettext] no-c-format flag by default for puts and fputs,
Göran Uddeborg <=