The test-parse-datetime fails with glibc-2.16.0 The new glibc uses time data from http://www.iana.org/time-zones. This currently uses a leapseconds cumulative value of 24.

The problem shows up in the test-parse-datetime.c file:

time_t ref_time = 1304250918;

gmtoff = gmt_offset (ref_time);

p = "2011-05-01T11:55:18";

expected.tv_sec = ref_time - gmtoff;
expected.tv_nsec = 0;
ASSERT (parse_datetime (&result, p, 0));
ASSERT (expected.tv_sec  == result.tv_sec &&
        expected.tv_nsec == result.tv_nsec);

All the ISO 8601 test differ by leapseconds:

string '2011-05-01T11:55:18' diff -24 0
string '2011-05-01T11:55:18' diff 24 0
string '2011-05-01 11:55:18' diff 24 0
string '2011-05-01T11:55:18Z' diff 24 0
string '2011-05-01 11:55:18Z' diff 24 0
string '2011-05-01T11:55:18-07:00' diff 24 0
string '2011-05-01 11:55:18-07:00' diff 24 0
string '2011-05-01T11:55:18-07' diff 24 0
string '2011-05-01 11:55:18-07' diff 24 0

I'm not sure if this is a coreutils or gnulib problem, but it shows up in the coreutils regression test.

  -- Bruce Dubbs
     linuxfromscratch.org



Reply via email to