From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12096 invoked by alias); 4 Feb 2002 03:22:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12035 invoked from network); 4 Feb 2002 03:22:18 -0000 Received: from unknown (HELO localhost.redhat.com) (24.114.26.18) by sources.redhat.com with SMTP; 4 Feb 2002 03:22:18 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id EAEA93E4D; Sun, 3 Feb 2002 22:22:17 -0500 (EST) Message-ID: <3C5DFE69.6030403@cygnus.com> Date: Sun, 03 Feb 2002 19:22:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: Eli Zaretskii Cc: gdb@sources.redhat.com Subject: Re: how to format an error? References: <3C5C0F2B.2050409@cygnus.com> <8582-Sat02Feb2002192518+0200-eliz@is.elta.co.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-02/txt/msg00070.txt.bz2 > Date: Sat, 02 Feb 2002 11:09:15 -0500 >> From: Andrew Cagney >> >> 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 ...)