From: Andrew Cagney <ac131313@ges.redhat.com>
To: tromey@redhat.com
Cc: Gdb List <gdb@sources.redhat.com>
Subject: Re: bad news about add_setshow_cmd
Date: Wed, 26 Jun 2002 19:25:00 -0000 [thread overview]
Message-ID: <3D1A7765.1060708@ges.redhat.com> (raw)
In-Reply-To: <87fzz9d7oq.fsf@fleche.redhat.com>
> Today while testing my jumbo add_setshow_cmd patch, I finally came
> across this code in do_setshow_command:
>
> /* Print doc minus "show" at start. */
> print_doc_line (gdb_stdout, c->doc + 5);
Ulgh.
> This isn't i18n-friendly. Really fixing it requires yet another
> global change to add_setshow_cmd :-(. Also it seems like it will
> require adding a new field to the command structure to hold the
> translated text.
>
> Or, we could replace the customized text with something generic. This
> is less friendly though.
>
> Does anybody know of other lurking problems before I go ahead and make
> this change? My current plan is to go ahead and add the new field and
> new doc strings everywhere. Any other ideas or preferences?
Sorry, you've lost me. Which new doc string? A third string for
showing the value?
--
BTW, grep -e '->doc', arrhg! add_dump_command() for instance?
[I think we're going to end up with GDB 6.0 due to internationalization
and not multi-arch - we're going to need an excuse for changing all the
output messages :-)]
Andrew
next prev parent reply other threads:[~2002-06-27 2:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-26 14:45 Tom Tromey
2002-06-26 19:25 ` Andrew Cagney [this message]
2002-06-27 8:56 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D1A7765.1060708@ges.redhat.com \
--to=ac131313@ges.redhat.com \
--cc=gdb@sources.redhat.com \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox