public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug translation/13662] New: toplev.c:4563-4567: gettext interprets the two conditional strings as one
@ 2004-01-12 22:27 debian-gcc at lists dot debian dot org
2004-01-12 23:15 ` [Bug translation/13662] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2004-01-12 22:27 UTC (permalink / raw)
To: gcc-bugs
[forwarded from http://bugs.debian.org/227193]
The bug submitter is translating gcc-3.3 into german. At toplev.c:4563, there is
the following code:
notice(
#ifdef ONE_SYSTEM
"first string",
#else
"second string",
#endif
These two strings are interpreted by gettext-0.12 as one string, which makes
translating it impossible. The source code of gcc should be changed at this point.
--
Summary: toplev.c:4563-4567: gettext interprets the two
conditional strings as one
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: translation
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13662
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translation/13662] toplev.c:4563-4567: gettext interprets the two conditional strings as one
2004-01-12 22:27 [Bug translation/13662] New: toplev.c:4563-4567: gettext interprets the two conditional strings as one debian-gcc at lists dot debian dot org
@ 2004-01-12 23:15 ` pinskia at gcc dot gnu dot org
2004-01-12 23:46 ` zack at codesourcery dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-12 23:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-12 23:15 -------
Two things, this really does not need to lociazed at all:
fnotice (file,
#ifdef __GNUC__
"%s%s%s version %s (%s)\n%s\tcompiled by GNU C version %s.\n"
#else
"%s%s%s version %s (%s) compiled by CC.\n"
#endif
, indent, *indent != 0 ? " " : "",
lang_hooks.name, version_string, TARGET_NAME,
indent, __VERSION__);
Another thing about the "bug", we know that fnotice is not a macro and it cannot be because we
defined it as. I do not know if we really want to fix this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13662
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translation/13662] toplev.c:4563-4567: gettext interprets the two conditional strings as one
2004-01-12 22:27 [Bug translation/13662] New: toplev.c:4563-4567: gettext interprets the two conditional strings as one debian-gcc at lists dot debian dot org
2004-01-12 23:15 ` [Bug translation/13662] " pinskia at gcc dot gnu dot org
@ 2004-01-12 23:46 ` zack at codesourcery dot com
2004-01-12 23:52 ` jsm at polyomino dot org dot uk
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: zack at codesourcery dot com @ 2004-01-12 23:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at codesourcery dot com 2004-01-12 23:46 -------
Subject: Re: toplev.c:4563-4567: gettext interprets
the two conditional strings as one
It does no harm to translate this text, and this code is such a tangle
that I think it worthwhile to clean it up a bit anyway. Something
like this
fnotice (file, "%s%s%s version %s (%s)\n",
indent, *indent ? " " : "",
lang_hooks.name, version_string, TARGET_NAME);
#ifdef __GNUC__
fnotice (file, "%s\tcompiled by GNU C version %s",
indent, __VERSION__);
#endif
would do just as well as we have now, and wouldn't cause i18n
problems. (I see no real value in the "compiled by CC." line.)
zw
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13662
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translation/13662] toplev.c:4563-4567: gettext interprets the two conditional strings as one
2004-01-12 22:27 [Bug translation/13662] New: toplev.c:4563-4567: gettext interprets the two conditional strings as one debian-gcc at lists dot debian dot org
2004-01-12 23:15 ` [Bug translation/13662] " pinskia at gcc dot gnu dot org
2004-01-12 23:46 ` zack at codesourcery dot com
@ 2004-01-12 23:52 ` jsm at polyomino dot org dot uk
2004-01-13 0:12 ` Zack Weinberg
2004-01-13 0:12 ` zack at codesourcery dot com
` (2 subsequent siblings)
5 siblings, 1 reply; 8+ messages in thread
From: jsm at polyomino dot org dot uk @ 2004-01-12 23:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm at polyomino dot org dot uk 2004-01-12 23:52 -------
Subject: Re: toplev.c:4563-4567: gettext interprets
the two conditional strings as one
On Mon, 12 Jan 2004, zack at codesourcery dot com wrote:
> It does no harm to translate this text, and this code is such a tangle
> that I think it worthwhile to clean it up a bit anyway. Something
> like this
This text goes both in the assembler file (with -fverbose-asm) and on
stderr (with -v). It makes sense for the second to be translated, but I
don't know about the first - and whether any bytes used in some character
encodings might confuse some assemblers even in a comment.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13662
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bug translation/13662] toplev.c:4563-4567: gettext interprets the two conditional strings as one
2004-01-12 23:52 ` jsm at polyomino dot org dot uk
@ 2004-01-13 0:12 ` Zack Weinberg
0 siblings, 0 replies; 8+ messages in thread
From: Zack Weinberg @ 2004-01-13 0:12 UTC (permalink / raw)
To: gcc-bugzilla; +Cc: gcc-bugs
"jsm at polyomino dot org dot uk" <gcc-bugzilla@gcc.gnu.org> writes:
> This text goes both in the assembler file (with -fverbose-asm) and on
> stderr (with -v). It makes sense for the second to be translated, but I
> don't know about the first
well, then patch it so the write to the assembly file doesn't use
fnotice. (the semantics of fnotice are precisely gettext + fprintf)
zw
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translation/13662] toplev.c:4563-4567: gettext interprets the two conditional strings as one
2004-01-12 22:27 [Bug translation/13662] New: toplev.c:4563-4567: gettext interprets the two conditional strings as one debian-gcc at lists dot debian dot org
` (2 preceding siblings ...)
2004-01-12 23:52 ` jsm at polyomino dot org dot uk
@ 2004-01-13 0:12 ` zack at codesourcery dot com
2004-01-18 17:45 ` dhazeghi at yahoo dot com
2005-09-25 20:59 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: zack at codesourcery dot com @ 2004-01-13 0:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From zack at codesourcery dot com 2004-01-13 00:12 -------
Subject: Re: toplev.c:4563-4567: gettext interprets
the two conditional strings as one
"jsm at polyomino dot org dot uk" <gcc-bugzilla@gcc.gnu.org> writes:
> This text goes both in the assembler file (with -fverbose-asm) and on
> stderr (with -v). It makes sense for the second to be translated, but I
> don't know about the first
well, then patch it so the write to the assembly file doesn't use
fnotice. (the semantics of fnotice are precisely gettext + fprintf)
zw
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13662
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translation/13662] toplev.c:4563-4567: gettext interprets the two conditional strings as one
2004-01-12 22:27 [Bug translation/13662] New: toplev.c:4563-4567: gettext interprets the two conditional strings as one debian-gcc at lists dot debian dot org
` (3 preceding siblings ...)
2004-01-13 0:12 ` zack at codesourcery dot com
@ 2004-01-18 17:45 ` dhazeghi at yahoo dot com
2005-09-25 20:59 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-18 17:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dhazeghi at yahoo dot com 2004-01-18 17:45 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-01-18 17:45:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13662
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translation/13662] toplev.c:4563-4567: gettext interprets the two conditional strings as one
2004-01-12 22:27 [Bug translation/13662] New: toplev.c:4563-4567: gettext interprets the two conditional strings as one debian-gcc at lists dot debian dot org
` (4 preceding siblings ...)
2004-01-18 17:45 ` dhazeghi at yahoo dot com
@ 2005-09-25 20:59 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-25 20:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-25 20:59 -------
Fixed in 4.1.0 by:
2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
* bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
config/stormy16/stormy16.c, config/v850/v850.c,
config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
Avoid "." or "\n" at end of diagnostics and capital letters at
start of diagnostics.
* combine.c, cse.c: Don't translate dump file output.
* toplev.c (print_version): Only translate output if going to
stderr.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13662
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-09-25 20:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-12 22:27 [Bug translation/13662] New: toplev.c:4563-4567: gettext interprets the two conditional strings as one debian-gcc at lists dot debian dot org
2004-01-12 23:15 ` [Bug translation/13662] " pinskia at gcc dot gnu dot org
2004-01-12 23:46 ` zack at codesourcery dot com
2004-01-12 23:52 ` jsm at polyomino dot org dot uk
2004-01-13 0:12 ` Zack Weinberg
2004-01-13 0:12 ` zack at codesourcery dot com
2004-01-18 17:45 ` dhazeghi at yahoo dot com
2005-09-25 20:59 ` pinskia at gcc dot gnu dot org
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).