Mail Archives: djgpp-workers/1997/04/10/18:54:37
I've finally discovered the reason behind the mktime() problem
that was annoying me for quite a time - it prevented me from
rebuilding libc.
The problem is that valid DOS filestamps (like Apr 04 1995 02:22:40)
are not valid in my local timezone because the daylight saving gap
happens to be in exactly this hour. Other timezones probably
suffer the same problem at different times.
As a consequence of this mktime() returns -1 for these timestamps,
and when running 'make' it thinks that a file with such a timestamp
is non-existent.
mktime() could be modified to handle such (rare) situations by
returning the previous/next valid second in this case.
Comments ?
- Raw text -