Define LC_ALL instead of LANG, in case the user has
authorJim Meyering <jim@meyering.net>
Wed, 3 May 2000 11:07:51 +0000 (11:07 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 3 May 2000 11:07:51 +0000 (11:07 +0000)
LC_CTYPE or LC_ALL set. Define it and LANGUAGE before the first "sort" call.

tests/rm/r-2

index cd4a3ab..2bba1f5 100755 (executable)
@@ -16,6 +16,11 @@ mkdir $tmp $tmp/a $tmp/a/b
 > $tmp/a/f
 > $tmp/a/b/g
 
+LANGUAGE=C
+export LANGUAGE
+LC_ALL=C
+export LC_ALL
+
 # FIXME: if this fails, it's a framework failure
 cat <<EOF | sort > $tmp/$test.E
 removing all entries of directory $tmp/a
@@ -26,11 +31,6 @@ removing $tmp/a/f
 removing the directory itself: $tmp/a
 EOF
 
-LANGUAGE=C
-export LANGUAGE
-LANG=C
-export LANG
-
 # Note that both the expected output (above) and the actual output lines
 # are sorted, because directory entries may be processed in arbitrary order.
 fail=0