]> git.wh0rd.org - patches.git/blob - gdb-locale.patch
more random patches. who knows.
[patches.git] / gdb-locale.patch
1 2006-06-22 Mike Frysinger <vapier@gentoo.org>:
2
3 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
4 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise
5
6 --- gdb/Makefile.in
7 +++ gdb/Makefile.in
8 @@ -1154,6 +1154,8 @@ init.c: $(INIT_FILES)
9 @rm -f init.c-tmp init.l-tmp
10 @touch init.c-tmp
11 @echo gdbtypes > init.l-tmp
12 + @-LANG=c ; export LANG ; \
13 + LC_ALL=c ; export LC_ALL ; \
14 - @-echo $(INIT_FILES) | \
15 + echo $(INIT_FILES) | \
16 tr ' ' '\012' | \
17 sed \
18 --- gdb/gdb_indent.sh
19 +++ gdb/gdb_indent.sh
20 @@ -3,6 +3,11 @@
21 # Try to find a GNU indent. There could be a BSD indent in front of a
22 # GNU gindent so when indent is found, keep looking.
23
24 +# Make certain that the script is running in an internationalized
25 +# environment.
26 +LANG=c ; export LANG
27 +LC_ALL=c ; export LC_ALL
28 +
29 gindent=
30 indent=
31 paths=`echo $PATH | sed \
32 --- gdb/gdb_mbuild.sh
33 +++ gdb/gdb_mbuild.sh
34 @@ -22,6 +22,11 @@
35 # Foundation, Inc., 51 Franklin Street, Fifth Floor,
36 # Boston, MA 02111-1301, USA
37
38 +# Make certain that the script is running in an internationalized
39 +# environment.
40 +LANG=c ; export LANG
41 +LC_ALL=c ; export LC_ALL
42 +
43 usage()
44 {
45 cat <<EOF
46 --- gdb/observer.sh
47 +++ gdb/observer.sh
48 @@ -1,5 +1,10 @@
49 #!/bin/sh -e
50
51 +# Make certain that the script is running in an internationalized
52 +# environment.
53 +LANG=c ; export LANG
54 +LC_ALL=c ; export LC_ALL
55 +
56 if test $# -ne 3
57 then
58 echo "Usage: $0 <h|inc> <observer.texi> <observer.out>" 1>&2