[swbz 29035] mktime vs non-DST

Paul Eggert eggert@cs.ucla.edu
Thu Aug 18 03:16:58 GMT 2022


On 8/17/22 19:37, Carlos O'Donell wrote:
> The mktime() interface has been around for a long time and users do not expect
> and have noticed the semantic changes we are seeing here today.

The semantic changes that bother users boil down to the following: glibc 
mktime returns -1 when users specify impossible is_dst flags, whereas 
mktime used to succeed. That problem is fixed in Gnulib.

The only disagreement between Gnulib and old (2.28) glibc in this area, 
is in relatively obscure cases where we have not seen any bug reports, 
and in these cases old glibc mostly gets it wrong (for example, see my 
previous email), whereas Gnulib mostly gets it right. Let's stick with 
the Gnulib behavior here.


More information about the Libc-alpha mailing list