Do not use ranges with tr, the results are locale-dependent.
authorDiego Biurrun <diego@biurrun.de>
Mon, 11 Feb 2008 23:17:06 +0000 (23:17 +0000)
committerDiego Biurrun <diego@biurrun.de>
Mon, 11 Feb 2008 23:17:06 +0000 (23:17 +0000)
Suggested by Rich Felker.

Originally committed as revision 11914 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index f719979..27db60c 100755 (executable)
--- a/configure
+++ b/configure
@@ -215,13 +215,13 @@ EOF
     exit 1
 }
 
-# "tr '[a-z]' '[A-Z]'" is a workaround for Solaris tr not grokking "tr a-z A-Z"
+# Avoid locale weirdness, besides we really just want to translate ASCII.
 toupper(){
-    echo "$@" | tr '[a-z]' '[A-Z]'
+    echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
 }
 
 tolower(){
-    echo "$@" | tr '[A-Z]' '[a-z]'
+    echo "$@" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
 }
 
 set_all(){