aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-02-11 23:17:06 +0000
committerDiego Biurrun <diego@biurrun.de>2008-02-11 23:17:06 +0000
commit6c6007d6a342f7797be9b1137cf2384b21ea9f52 (patch)
treea6d7e40172fc499cab996e98fc8187d035556487 /configure
parent300aa2b039ab5c3ebcfb8fd31a547494e36d4979 (diff)
downloadffmpeg-6c6007d6a342f7797be9b1137cf2384b21ea9f52.tar.gz
Do not use ranges with tr, the results are locale-dependent.
Suggested by Rich Felker. Originally committed as revision 11914 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index f7199793fa..27db60cd99 100755
--- 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(){