Commit 51b5a225 authored by diego's avatar diego

Do not use ranges with tr, the results are locale-dependent.

Suggested by Rich Felker.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11914 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 399e8fe4
...@@ -215,13 +215,13 @@ EOF ...@@ -215,13 +215,13 @@ EOF
exit 1 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(){ toupper(){
echo "$@" | tr '[a-z]' '[A-Z]' echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
} }
tolower(){ tolower(){
echo "$@" | tr '[A-Z]' '[a-z]' echo "$@" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
} }
set_all(){ set_all(){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment