bug-coreutils
[Top][All Lists]
Advanced

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

Re: possible patch for coreutils 5.1.1 failure on OSF 3.2C


From: Paul Jarc
Subject: Re: possible patch for coreutils 5.1.1 failure on OSF 3.2C
Date: Wed, 21 Jan 2004 13:25:47 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

Paul Eggert <address@hidden> wrote:
> 2004-01-19  Paul Eggert  <address@hidden>
>
>       * tests/touch/relative: Use TZ=UTC0, not TZ=utc (which isn't
>       portable).  Problem reported by Christian Krackowizer.  Also, use
>       +0000 rather than +0 to specify a time zone, as the documentation
>       requires four digits.

This is still not quite right on systems with TAI clocks.  With
unpatched 5.1.1, I get:

out exp differ: char 16, line 1
1c1
< 2004-01-16T04:57:00
---
> 2004-01-16T04:56:38
FAIL: relative

The problem is that this command:
  touch --date='2004-01-16 05:26:38 +0' f || framework_failure=1
uses an offset of 0 from UTC, but it still handles leap seconds
according to the system time zone (right/US/Eastern).  But this
command:
  TZ=utc command ls -og --time-style=+%Y-%m-%dT%H:%M:%S f > out.1 || fail
overrides the system time zone entirely, and thus handles leap seconds
differently.  To ensure that they match, either both commands should
override the time zone, or both should merely specify the UTC offset.


paul




reply via email to

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