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
This commit is contained in:
parent
300aa2b039
commit
6c6007d6a3
6
configure
vendored
6
configure
vendored
@ -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(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user