This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/23184] New: I18n bug in gjavah.c
- From: "goeran at uddeborg dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 1 Aug 2005 20:37:33 -0000
- Subject: [Bug java/23184] New: I18n bug in gjavah.c
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc/java/gjavah.c contains the statements
fprintf (stderr, _("Try '" TOOLNAME " --help' for more information.\n"));
The tool extracting strings for translation is fooled by this (not
surprisingly). The current po files contains the strings "Try '", " --help' for
more information.\n", for translation. But at run-time, "gettext" (a.k.a. "_")
will of course be called with the merged string.
There is one more example in the file where string concatenation with TOOLNAME
breaks i18n in the same way.
printf (_("Usage: " TOOLNAME " [OPTION]... CLASS...\n\n"));
--
Summary: I18n bug in gjavah.c
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: goeran at uddeborg dot se
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23184