Commit 6c6007d6 authored by Diego Biurrun's avatar Diego Biurrun
Browse files

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

Suggested by Rich Felker.

Originally committed as revision 11914 to svn://
parent 300aa2b0
......@@ -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.
echo "$@" | tr '[a-z]' '[A-Z]'
echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
echo "$@" | tr '[A-Z]' '[a-z]'
echo "$@" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
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