>
> OK, I'm done now.  Can you please try the latest gnulib mktime.c
> and see whether it solves the problem on your platform?

I tested it, and mktime.exe no longer hangs for dates before 1970.

$ ./mktime 1980-01-01 00:00:00
mktime returns 315529200 == 1980-01-01 00:00:00 yday 000 wday 2 isdst 0

$ ./mktime 1962-01-01 00:00:00
mktime returns -1 == 1962-01-01 00:00:00 yday 2293728 wday 2293560 isdst -1
mktime (0)
yields (1962-01-01 00:00:00 yday 2293728 wday 2293560 isdst -1) == -1,
should be -1

thanks for fixing it!
benjamin

Reply via email to