From: Paul Eggert Date: Sun, 11 Jun 2006 07:59:16 +0000 (+0000) Subject: * tests/cp/same-file: Execute 'ls' in the C locale, so that it X-Git-Tag: COREUTILS-6_0~312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13d0cd669e1f1ecc19d4087fed2ec5dea23d94a2;p=platform%2Fupstream%2Fcoreutils.git * tests/cp/same-file: Execute 'ls' in the C locale, so that it uses POSIX time stamp formats. Problem reported by John Nixon in . --- diff --git a/ChangeLog b/ChangeLog index 0377cc6..935daff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-06-11 Paul Eggert + + * tests/cp/same-file: Execute 'ls' in the C locale, so that it + uses POSIX time stamp formats. Problem reported by John Nixon in + . + 2006-06-10 Jim Meyering * NEWS: Mention the AIX-strndup-bug vs. dircolors workaround. diff --git a/tests/cp/same-file b/tests/cp/same-file index 47db0cd..2cba869 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/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`"