[FFmpeg-cvslog] r11914 - trunk/configure
diego
subversion
Tue Feb 12 00:17:06 CET 2008
Author: diego
Date: Tue Feb 12 00:17:06 2008
New Revision: 11914
Log:
Do not use ranges with tr, the results are locale-dependent.
Suggested by Rich Felker.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Tue Feb 12 00:17:06 2008
@@ -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(){
More information about the ffmpeg-cvslog
mailing list