Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: gdb@sources.redhat.com
Subject: Re: how to format an error?
Date: Sun, 03 Feb 2002 19:22:00 -0000	[thread overview]
Message-ID: <3C5DFE69.6030403@cygnus.com> (raw)
In-Reply-To: <8582-Sat02Feb2002192518+0200-eliz@is.elta.co.il>

> Date: Sat, 02 Feb 2002 11:09:15 -0500
>> From: Andrew Cagney <ac131313@cygnus.com>
>> 
>> Wouldn't the gettext stuff let the german translator do this?
> 
> 
> gettext? what gettext? there _is_ no gettext in GDB ;-)


> Anyway, the specific case I cited was with system error messages
> returned by strerror.  These are not subject to translations.


My manual says:

     The strerror() function returns a pointer to the language-dependent error
     message string affiliated with an error number.


with a SEE ALSO to setlocale().  I guess something like:

   error ("Cannot perform exponentiation: %s", strerror (errno));

is ok, but:

   error ("%s on target_read", safe_strerror (err));

is really bad.

Andrew

(Hmm, I like the swapping between strerror and save_strerror ...)


      reply	other threads:[~2002-02-04  3:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-13 20:36 Andrew Cagney
2002-01-14  0:22 ` Eli Zaretskii
2002-01-14  2:37   ` Richard Earnshaw
2002-01-14  3:08     ` Eli Zaretskii
2002-02-02  8:09   ` Andrew Cagney
2002-02-02  9:27     ` Eli Zaretskii
2002-02-03 19:22       ` Andrew Cagney [this message]

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=3C5DFE69.6030403@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=eliz@is.elta.co.il \
    --cc=gdb@sources.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