public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/47081] New: Macro usage too clever for localization
@ 2010-12-28 19:19 goeran at uddeborg dot se
  2010-12-28 19:21 ` [Bug middle-end/47081] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: goeran at uddeborg dot se @ 2010-12-28 19:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47081

           Summary: Macro usage too clever for localization
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: goeran@uddeborg.se


In gcc/gentype-state.c there is a macro like this:

#define fatal_reading_state_printf(Tok,Fmt,...) do {    \
...
      fatal ("%s:%d:%d: Invalid state file; " Fmt,    \

Normally, the first argument to fatal() is extracted for localization.  But
that extraction apparently fails here.  Each usage of the macro will create a
unique format string to fatal().  But the extractor for localization only
extracts the invariant part that is in the macro, "%s:%d:%d: Invalid state
file; ".  That will never be the string looked up for translation at run time. 
And the strings actually looked up are not available in the pot file.

Seen in the po file distributed for 4.6-b20101218.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-06-24 16:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-28 19:19 [Bug middle-end/47081] New: Macro usage too clever for localization goeran at uddeborg dot se
2010-12-28 19:21 ` [Bug middle-end/47081] " pinskia at gcc dot gnu.org
2010-12-28 19:24 ` goeran at uddeborg dot se
2010-12-28 19:44 ` joseph at codesourcery dot com
2024-06-16 21:24 ` goeran at uddeborg dot se
2024-06-17  5:22 ` egallager at gcc dot gnu.org
2024-06-17 17:17 ` jsm28 at gcc dot gnu.org
2024-06-24 16:06 ` goeran at uddeborg dot se

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).