summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-06-11 07:59:16 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-06-11 07:59:16 +0000
commit13d0cd669e1f1ecc19d4087fed2ec5dea23d94a2 (patch)
tree3623216e1c3d3fd997af2c01ae8372982394e2de /tests/cp
parentff276995ff38a9615a1f53249e1acf624e18d910 (diff)
downloadcoreutils-13d0cd669e1f1ecc19d4087fed2ec5dea23d94a2.tar.xz
* tests/cp/same-file: Execute 'ls' in the C locale, so that it
uses POSIX time stamp formats. Problem reported by John Nixon in <http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html>.
Diffstat (limited to 'tests/cp')
-rwxr-xr-xtests/cp/same-file2
1 files changed, 1 insertions, 1 deletions
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/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`"