From 13d0cd669e1f1ecc19d4087fed2ec5dea23d94a2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 11 Jun 2006 07:59:16 +0000 Subject: * tests/cp/same-file: Execute 'ls' in the C locale, so that it uses POSIX time stamp formats. Problem reported by John Nixon in . --- tests/cp/same-file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/cp/same-file') diff --git a/tests/cp/same-file b/tests/cp/same-file index 47db0cd15..2cba869b3 100755 --- a/tests/cp/same-file +++ b/tests/cp/same-file @@ -74,7 +74,7 @@ for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do # and put brackets around the output. test -s _err && echo "[`sed 's/^[^:][^:]*:/cp:/' _err`]" # Strip off all but the file names. - ls="`ls -gG --ignore=_err . \ + ls="`LC_ALL=C ls -gG --ignore=_err . \ | sed \ -e '/^total /d' \ -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`" -- cgit v1.2.3-54-g00ecf