From 8299069b8e7bb037f3393afc06ef28f924daaf53 Mon Sep 17 00:00:00 2001 From: Nils Larsch Date: Wed, 1 Mar 2006 19:52:39 +0000 Subject: [PATCH] force C locale when using [a-z] in sed expressions PR: 1283 Submitted by: Mike Frysinger --- config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config b/config index dbe1595341..c2f504f59e 100755 --- a/config +++ b/config @@ -427,7 +427,7 @@ if [ "$GCCVER" != "" ]; then CC=gcc # then strip off whatever prefix egcs prepends the number with... # Hopefully, this will work for any future prefixes as well. - GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z]*\-//'` + GCCVER=`echo $GCCVER | LC_ALL=C sed 's/^[a-zA-Z]*\-//'` # Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion # does give us what we want though, so we use that. We just just the # major and minor version numbers. -- 2.25.1