Make sorting locale independent.

This commit is contained in:
Michal Čihař
2010-05-25 15:22:41 +02:00
parent e369cc64df
commit 14e345de7b

View File

@@ -7,13 +7,15 @@
# August 9, 2002 # August 9, 2002
## ##
LC_COLLATE=C
specialsort() specialsort()
{ {
in=$1 in=$1
out=$2 out=$2
STRINGORDER="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z" STRINGORDER="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
for i in $STRINGORDER; for i in $STRINGORDER;
do do
egrep '^\$str'$i $in | sort >> $out egrep '^\$str'$i $in | sort >> $out
@@ -71,7 +73,7 @@ sortlang()
} }
echo "-------------------------------------------------------------------" echo "-------------------------------------------------------------------"
for i in "$@"; for i in "$@";
do do
if [ ! -f $i ] ; then if [ ! -f $i ] ; then
echo "$i is not a file, skipping" echo "$i is not a file, skipping"