This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] fix issues in some locales with using a-z


On Thu, Jul 06, 2006 at 02:12:17PM -0400, Mike Frysinger wrote:
> i copied and pasted from other files ... so yes, they should all be fixed, not 
> just the files i updated :)

>From one other file... I'll do it myself :-)

Tested, checked in.

-- 
Daniel Jacobowitz
CodeSourcery

2006-07-12  Mike Frysinger  <vapier@gentoo.org>:
	    Daniel Jacobowitz  <dan@codesourcery.com>

	* Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
	* gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
	* gdbarch.sh: Correct comment.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.825
diff -u -p -r1.825 Makefile.in
--- Makefile.in	10 Jul 2006 19:40:27 -0000	1.825
+++ Makefile.in	12 Jul 2006 17:55:28 -0000
@@ -1151,7 +1151,9 @@ init.c: $(INIT_FILES)
 	@rm -f init.c-tmp init.l-tmp
 	@touch init.c-tmp
 	@echo gdbtypes > init.l-tmp
-	@-echo $(INIT_FILES) | \
+	@-LANG=c ; export LANG ; \
+	LC_ALL=c ; export LC_ALL ; \
+	echo $(INIT_FILES) | \
 	tr ' ' '\012' | \
 	sed \
 	    -e '/^gdbtypes.[co]$$/d' \
Index: gdb_indent.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdb_indent.sh,v
retrieving revision 1.9
diff -u -p -r1.9 gdb_indent.sh
--- gdb_indent.sh	27 Sep 2004 13:43:37 -0000	1.9
+++ gdb_indent.sh	12 Jul 2006 17:55:28 -0000
@@ -3,6 +3,11 @@
 # Try to find a GNU indent.  There could be a BSD indent in front of a
 # GNU gindent so when indent is found, keep looking.
 
+# Make certain that the script is not running in an internationalized
+# environment.
+LANG=c ; export LANG
+LC_ALL=c ; export LC_ALL
+
 gindent=
 indent=
 paths=`echo $PATH | sed \
Index: gdb_mbuild.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdb_mbuild.sh,v
retrieving revision 1.9
diff -u -p -r1.9 gdb_mbuild.sh
--- gdb_mbuild.sh	17 Dec 2005 22:33:59 -0000	1.9
+++ gdb_mbuild.sh	12 Jul 2006 17:55:28 -0000
@@ -22,6 +22,11 @@
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor,
 #  Boston, MA  02111-1301, USA
 
+# Make certain that the script is not running in an internationalized
+# environment.
+LANG=c ; export LANG
+LC_ALL=c ; export LC_ALL
+
 usage()
 {
     cat <<EOF
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.364
diff -u -p -r1.364 gdbarch.sh
--- gdbarch.sh	18 Apr 2006 19:20:06 -0000	1.364
+++ gdbarch.sh	12 Jul 2006 17:55:28 -0000
@@ -22,7 +22,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor,
 # Boston, MA 02110-1301, USA.
 
-# Make certain that the script is running in an internationalized
+# Make certain that the script is not running in an internationalized
 # environment.
 LANG=c ; export LANG
 LC_ALL=c ; export LC_ALL
Index: observer.sh
===================================================================
RCS file: /cvs/src/src/gdb/observer.sh,v
retrieving revision 1.9
diff -u -p -r1.9 observer.sh
--- observer.sh	17 Dec 2005 22:34:01 -0000	1.9
+++ observer.sh	12 Jul 2006 17:55:28 -0000
@@ -1,5 +1,10 @@
 #!/bin/sh -e
 
+# Make certain that the script is not running in an internationalized
+# environment.
+LANG=c ; export LANG
+LC_ALL=c ; export LC_ALL
+
 if test $# -ne 3
 then
     echo "Usage: $0 <h|inc> <observer.texi> <observer.out>" 1>&2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]