diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-15 07:18:38 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-15 07:18:38 +0000 |
commit | be72ac078cdba5de6981e543b669f2d38a757035 (patch) | |
tree | 5fc3c07611109324764128515d86663c42653360 | |
parent | 6d38725e2186cb3938b1f7129cfe64947740f46d (diff) | |
download | coreutils-be72ac078cdba5de6981e543b669f2d38a757035.tar.xz |
Set LC_ALL to `C' to avoid failure when the
current locale is not C (POSIX). From Matthew Clarke.
-rwxr-xr-x | tests/ls/time-1 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ls/time-1 b/tests/ls/time-1 index d52375879..294f59f1b 100755 --- a/tests/ls/time-1 +++ b/tests/ls/time-1 @@ -43,6 +43,13 @@ sleep 2 # Create a link, updating c's ctime. ln c d || framework_failure=1 +# Date output in ls -l is locale-sensitive, so this test fails if the +# current locale produces a date that doesn't match the embedded value +# here (Jan 15 23:00:00 1998), which is in the C (POSIX) locale. Some +# systems don't handle LC_ALL at all, so we only force it to C if it is +# already set. +test ${LC_ALL+set} = set && LC_ALL=C + # Before we go any further, verify that touch's -m option works. set -- `ls --full -l a` case "$*" in |