This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Special handling of "%H" (Re: Support for %d$c format specifier in diagnostics.c)
"Joseph S. Myers" <jsm@polyomino.org.uk> writes:
| On Sun, 27 Jul 2003, Zack Weinberg wrote:
|
| > We do not have established lines of communication with the Translation
| > Project, so I do not want to try to explain to the translators that
| > they need to ignore the %H and count from the next argument. I'd
|
| Also, this notion (that %H consumes an argument, but operand numbers count
| from the next argument) is entirely unknown to the format checking code.
I do not believe that does matter for the format checking code.
Thr format checking operates at call site and does not know anything
about positional parameters.
| That doesn't matter as long as the rule is followed that operand numbers
| are only ever used in .po files, but it might be possible to write a
| script that uses GCC's built-in format checking to validate .po files (by
| substituting the strings directly into GCC's source and building the
| compiler), which would fail if the .po files start having formats not
| comprehensible to the format checking code.
Until we have such a complexity in place and precise overview of how
it works, I do not believe that conceptual exitence matters.
-- Gaby