Jan. 12, 2017
11:41 a.m.
On 01/11/2017 02:06 PM, Arthur David Olson wrote:
Unfortunately now that I think of it, I see that this can't work on hosts with 32-bit time_t, as they can't cover the 400-year span. So the code is still broken on 32-bit hosts. Is there a better way to fix the code?
Since 32-bit time_t values can only cover (about) 140 years, not covering a 400-year span's not a bug, it's a given.-)
Yes, but unfortunately the code in localtime.c filled in the table only for the years 1970-2038, and this the 68-year filled-in period was not enough to make the goback code work correctly (it needs 400 years). I installed the attached patch to try to fix this; it handles Kees Dekker's test case correctly on hosts with 32-bit time_t.