Use locale-independent sorting

On systems without installed/configured locales, the file
list is sorted by byte comparison.
On some locales it is sorted differently (e.g. X11 at the end).
This commit is contained in:
Reiner Herrmann 2016-05-05 21:41:34 +02:00
parent 37a5a3545e
commit 0bf89d9be0

View file

@ -15,29 +15,29 @@ expect {
}
sleep 1
send -- "ls -al /etc\r"
send -- "LC_ALL=C ls -al /etc\r"
expect {
timeout {puts "TESTING ERROR 3\n";exit}
"group"
"X11"
}
expect {
timeout {puts "TESTING ERROR 4\n";exit}
"passwd"
"group"
}
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"resolv.conf"
"passwd"
}
expect {
timeout {puts "TESTING ERROR 6\n";exit}
"X11"
"resolv.conf"
}
send -- "ls -al /etc\r"
send -- "ls -al /etc; echo done\r"
expect {
timeout {puts "TESTING ERROR 7\n";exit}
"shadow" {puts "TESTING ERROR 8\n";exit}
"X11"
"done"
}
sleep 1