From 14e345de7bb6a84283c708bc0e0019edd935730c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 25 May 2010 15:22:41 +0200 Subject: [PATCH] Make sorting locale independent. --- lang/sort_lang.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lang/sort_lang.sh b/lang/sort_lang.sh index 42032da9b..6d505929d 100755 --- a/lang/sort_lang.sh +++ b/lang/sort_lang.sh @@ -7,13 +7,15 @@ # August 9, 2002 ## +LC_COLLATE=C + specialsort() { in=$1 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" - + for i in $STRINGORDER; do egrep '^\$str'$i $in | sort >> $out @@ -71,7 +73,7 @@ sortlang() } echo "-------------------------------------------------------------------" -for i in "$@"; +for i in "$@"; do if [ ! -f $i ] ; then echo "$i is not a file, skipping"