This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/obish] Internationalize gdbarch.sh
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 17 Apr 2002 15:09:48 -0400
- Subject: Re: [patch/obish] Internationalize gdbarch.sh
- References: <3CBDC4AB.1060500@cygnus.com>
On Wed, Apr 17, 2002 at 02:53:31PM -0400, Andrew Cagney wrote:
> Finally figured out why the GNU/Linux system I was using couldn't
> reproduce gdbarch.[hc]. I guess I need to remember that GNU/Linux isn't
> UNIX :-)
>
> Committed.
> Andrew
I think you want to set LC_ALL, also. That's the appropriate hook for
something that needs to force an environment.
Also, did you mean "is not running in"?
> 2002-04-17 Andrew Cagney <ac131313@redhat.com>
>
> * gdbarch.sh (LANG): Set to ``c''.
>
> Index: gdbarch.sh
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbarch.sh,v
> retrieving revision 1.125
> diff -u -r1.125 gdbarch.sh
> --- gdbarch.sh 10 Apr 2002 22:00:20 -0000 1.125
> +++ gdbarch.sh 17 Apr 2002 18:41:56 -0000
> @@ -19,6 +19,11 @@
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
>
> +# Make certain that the script is running in an internationalized
> +# environment.
> +LANG=c ; export LANG
> +
> +
> compare_new ()
> {
> file=$1
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer