From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29232 invoked by alias); 23 Jun 2006 00:06:23 -0000 Received: (qmail 29223 invoked by uid 22791); 23 Jun 2006 00:06:22 -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; Fri, 23 Jun 2006 00:06:16 +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 3D75BB443B for ; Thu, 22 Jun 2006 23:45:16 +0000 (UTC) Received: (qmail 15565 invoked from network); 22 Jun 2006 19:37:25 -0400 Received: from unknown (HELO vapier) (192.168.0.2) by 192.168.0.1 with SMTP; 22 Jun 2006 19:37:25 -0400 From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [patch] fix issues in some locales with using a-z User-Agent: KMail/1.9.1 MIME-Version: 1.0 Date: Fri, 23 Jun 2006 00:06:00 -0000 Content-Type: Multipart/Mixed; boundary="Boundary-00=_+yymE9k9X1pl63P" Message-Id: <200606221950.22456.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/msg00343.txt.bz2 --Boundary-00=_+yymE9k9X1pl63P Content-Type: multipart/signed; boundary="nextPart5904841.TN2a7efJ7N"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart5904841.TN2a7efJ7N Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 870 hmm, lets try this again but with a patch that doesnt break Makefile.in 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 --nextPart5904841.TN2a7efJ7N Content-Type: application/pgp-signature Content-length: 827 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iQIVAwUARJssvkFjO5/oN/WBAQLlKhAAx/h//YXTu6uCI8GHHI0Sdhxr1Y47FLky HW+dvxV2mDN/hQcv9xQzAtDjU5lIs7krm+4ke6u+TzCw0RN1WCSLBnFEQPM+VPRz 2AjIZikREkGlUI/3FSmkoFSZYYScqr2fBNsa2DS1hyZFE/fuk2kNukmhdewZNGt8 TzjL8nrE8YleKNCs1gJYjEzSzhslJYKTyhAgyL597DCTOdSr3D3LNYRiuyU9YOQQ RsKyjXKrc2IYanS1aEkHxuTaY1dKfdWMx+0OMzb0MDja3Qt9arZxbj/ktwtY6tYX VroVFjFArTizY4v4ar2CIpbTRiNMrlQHuPH7s+yUynvuZTutZruxoCQGojnJ3Aeg CAOh9cC8ZcAPeziObTp2HUScHqg05GkRUAEj8jZPxD9nYvuWzBAt5q6hTdOW4eo7 V/jZatBH01ad72BXpSD39I52kINiWzMFhruvZe+zHxEGZIResLra8Hsn15gHKLha jRTvZdw6flLgVMpUQ0xxgS5A4gVCQXsplDn11OtGDj4ILfwqepjOUuusK2TyuLMq v+3Ks9K8F6OskKPXbSw/TKyOhReb8WaK/SvIPfLW5zLAKaKZL881uqcSmJL8FZzC 2LqLx+5kyrBzDfUpfYhAbc14Eldd907gbfVHY2pB/TErGKHykmA3DzgkoWpsdDrU Z/tOFA/R11Q= =a96k -----END PGP SIGNATURE----- --nextPart5904841.TN2a7efJ7N-- --Boundary-00=_+yymE9k9X1pl63P 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: 1439 2006-06-22 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) | \ + 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=_+yymE9k9X1pl63P--