bug-gnulib
[Top][All Lists]
Advanced

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

mktime() hangs for dates before 1970


From: Benjamin Lindner
Subject: mktime() hangs for dates before 1970
Date: Thu, 27 Jan 2011 12:52:02 +0100

Hello list,

Using gnulib's mktime on MinGW platform, I found that a call to
mktime() hangs for dates before 1970-01-01 01:00:00.
To reproduce, I compiled mktime.c into an executable file as
instructed at the bottom of the source code.

> mktime 1970-01-01 01:00:00
mktime returns 0 == 1970-01-01 01:00:00 yday 000 wday 4 isdst 0

but

> mktime 1970-01-01 00:59:59

(no response)

and the same happens for older dates (The original occurence was a
testcase in octave's source code using the date 03/13/1962)

benjamin



reply via email to

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