force C locale when using [a-z] in sed expressions
authorNils Larsch <nils@openssl.org>
Wed, 1 Mar 2006 19:52:39 +0000 (19:52 +0000)
committerNils Larsch <nils@openssl.org>
Wed, 1 Mar 2006 19:52:39 +0000 (19:52 +0000)
PR: 1283
Submitted by: Mike Frysinger

config

diff --git a/config b/config
index dbe1595341491a4794072a003ec0c46b8f164b28..c2f504f59e366bb9901b0e10284c81f05270a5fb 100755 (executable)
--- 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.