* tests/cp/same-file: Execute 'ls' in the C locale, so that it
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Jun 2006 07:59:16 +0000 (07:59 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Jun 2006 07:59:16 +0000 (07:59 +0000)
uses POSIX time stamp formats.  Problem reported by John Nixon in
<http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00062.html>.

ChangeLog
tests/cp/same-file

index 0377cc6..935daff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * 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>.
+
 2006-06-10  Jim Meyering  <jim@meyering.net>
 
        * NEWS: Mention the AIX-strndup-bug vs. dircolors workaround.
index 47db0cd..2cba869 100755 (executable)
@@ -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/^[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *//'`"