From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29881 invoked by alias); 22 Jun 2006 04:00:47 -0000 Received: (qmail 29870 invoked by uid 22791); 22 Jun 2006 04:00:47 -0000 X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 Jun 2006 04:00:44 +0000 Received: from home.wh0rd.org (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id B6CBA64DC0 for ; Thu, 22 Jun 2006 04:00:40 +0000 (UTC) Received: (qmail 1769 invoked from network); 21 Jun 2006 23:53:06 -0400 Received: from unknown (HELO vapier) (192.168.0.2) by 192.168.0.1 with SMTP; 21 Jun 2006 23:53:06 -0400 From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [patch] fix issues in some locales with using a-z Date: Thu, 22 Jun 2006 04:00:00 -0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_XchmETyvVrIE61V" Message-Id: <200606220005.43029.vapier@gentoo.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00320.txt.bz2 --Boundary-00=_XchmETyvVrIE61V Content-Type: multipart/signed; boundary="nextPart2187624.FVjQFAEliY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2187624.FVjQFAEliY Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 797 a bunch of files in gdb use a-z in sed expressions without forcing the loca= le=20 to c ... in some locales, this can cause some pretty "fun" results: (observer.sh) In file included from solib.c:47: observer.h:35: error: stray '@' in program observer.h:35: error: expected ')' before 'deftypefun' (Makefile.in:init.c) libgdb.a(init.o): In function `initialize_all_files': init.c:(.text+0xa): undefined reference to `_initialize_amd64_lin' init.c:(.text+0xf): undefined reference to `_initialize_i386_' i've fixed this issue in the Makefile.in, gdb_indent.sh, gdb_mbuild,sh, and= =20 observer.sh files the same way that gdbarch.sh was fixed oh-so-long ago=20 rather than the over-the-top way that autoconf does it (see the top of=20 gdb/configure under "NLS nuisances" to see what i mean) -mike --nextPart2187624.FVjQFAEliY Content-Type: application/pgp-signature Content-length: 827 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iQIVAwUARJoXFkFjO5/oN/WBAQLwTRAAjVydraSa813CH0ILNVfyMITqHsGw/Go6 GYIYlXzaGL17prueyizScDlz8Ijq6J1SHlRuJ9SQTZ4pUWQenucJIJ3V27lBiVEk DzeB6DQn61TYsLunJGhU9UdwvXpT4x78ndfCZwYyKHNISnBITH7HoaN269vv8Mjb Tpj28D69jET8wKf/lAUHijMyv3ZRoebjdVnVQ2zXQ+IUYOpelpNHDmpm/WhmO6gX siNuAeyovOlNKepWEswkOFwDR6AjWmkRXhMDbDeMPOyIKtodloDfGgC7atto5z9Q 8HBre6n0SOyWCeZmSH83biHJwT2ldHw7ceK3dwQjH/JZXKeKBZDkB7zAuB96izXb SxgSk4EGwUmqEaFDUPXNGodkItQcTTKZ+sXlM4HUEvRaJxvAM0E4gcm+wQskJi0O /wS7xvLwPdUHrEXtOyd1UEtnYkd82DMxkWKv4wcJMu7aPTca+PIc80GSvOOxefQn sswRjjkLa6fqIdu/qjdvYWOiwEy337DXtEjldiCXyGPWUCkB+4NPZLexnegC3u0d PZPikD5E4NjjXimKLViec7PbUwiD2M4Mwu/aZa404CHv1F1Eywl6+xgdLy2aTsMb H+T2lNVIlwA8HSORCcUkPmVnGCj+aqFO++QTCr8qlRdhvrvZi4rv3gc9ywRZQ4yT LA1fsVn8gRA= =Pn8C -----END PGP SIGNATURE----- --nextPart2187624.FVjQFAEliY-- --Boundary-00=_XchmETyvVrIE61V Content-Type: text/x-diff; charset="us-ascii"; name="gdb-locale.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdb-locale.patch" Content-length: 1412 2006-06-21 Mike Frysinger : * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'. * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise --- gdb/Makefile.in +++ gdb/Makefile.in @@ -1154,6 +1154,8 @@ init.c: $(INIT_FILES) @rm -f init.c-tmp init.l-tmp @touch init.c-tmp @echo gdbtypes > init.l-tmp + LANG=c ; export LANG ; \ + LC_ALL=c ; export LC_ALL ; \ @-echo $(INIT_FILES) | \ tr ' ' '\012' | \ sed \ --- gdb/gdb_indent.sh +++ gdb/gdb_indent.sh @@ -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 running in an internationalized +# environment. +LANG=c ; export LANG +LC_ALL=c ; export LC_ALL + gindent= indent= paths=`echo $PATH | sed \ --- gdb/gdb_mbuild.sh +++ gdb/gdb_mbuild.sh @@ -22,6 +22,11 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, # Boston, MA 02111-1301, USA +# Make certain that the script is running in an internationalized +# environment. +LANG=c ; export LANG +LC_ALL=c ; export LC_ALL + usage() { cat < " 1>&2 --Boundary-00=_XchmETyvVrIE61V--