Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch/obish] Internationalize gdbarch.sh
@ 2002-04-17 11:53 Andrew Cagney
  2002-04-17 12:09 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2002-04-17 11:53 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

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

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 659 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch/obish] Internationalize gdbarch.sh
  2002-04-17 11:53 [patch/obish] Internationalize gdbarch.sh Andrew Cagney
@ 2002-04-17 12:09 ` Daniel Jacobowitz
  2002-04-23 14:38   ` Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2002-04-17 12:09 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch/obish] Internationalize gdbarch.sh
  2002-04-17 12:09 ` Daniel Jacobowitz
@ 2002-04-23 14:38   ` Andrew Cagney
  2002-04-23 15:50     ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2002-04-23 14:38 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb-patches

> 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.

Er, how?  (yes dumb question time :-)

Andrew


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch/obish] Internationalize gdbarch.sh
  2002-04-23 14:38   ` Andrew Cagney
@ 2002-04-23 15:50     ` Daniel Jacobowitz
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2002-04-23 15:50 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

On Tue, Apr 23, 2002 at 05:38:47PM -0400, Andrew Cagney wrote:
> >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.
> 
> Er, how?  (yes dumb question time :-)

Same way you set LANG; as an environment variable.

LANG provides a default.  Then LC_* (COLLATE, etc.) provide more
specific tuning, and LC_ALL is the hammer to knock them all in line
when you REALLY want C.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-23 22:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-17 11:53 [patch/obish] Internationalize gdbarch.sh Andrew Cagney
2002-04-17 12:09 ` Daniel Jacobowitz
2002-04-23 14:38   ` Andrew Cagney
2002-04-23 15:50     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox