From: Nils Larsch Date: Wed, 1 Mar 2006 19:51:37 +0000 (+0000) Subject: force C locale when using [a-z] in sed expressions X-Git-Tag: OpenSSL_0_9_8k^2~1535 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f2c33fa6fd242d6e72729d4b21b4d5e7d6f6293d;p=oweals%2Fopenssl.git force C locale when using [a-z] in sed expressions PR: 1283 Submitted by: Mike Frysinger --- diff --git a/config b/config index 82c57efb7c..6583959479 100755 --- a/config +++ b/config @@ -406,7 +406,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.