bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

same-file patch when 'ls' doesn't default to POSIX locale


From: Paul Eggert
Subject: same-file patch when 'ls' doesn't default to POSIX locale
Date: Sun, 11 Jun 2006 01:01:43 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

On second thought, that patch is so obviously needed that I installed
it on the trunk.  Here it is again.  Not sure whether it should be on
the b5.9x branch at this point.

2006-06-11  Paul Eggert  <address@hidden>

        * 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>.

--- tests/cp/same-file  23 Jun 2004 15:07:04 -0000      1.39
+++ tests/cp/same-file  11 Jun 2006 07:58:03 -0000
@@ -74,7 +74,7 @@ for args in 'foo symlink' 'symlink foo' 
        # 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/^[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *[^ ]*  *//'`"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]