http://bugs.winehq.org/show_bug.cgi?id=19465
Summary: _mktime64 does not work with time/dates after 2038 Product: Wine Version: 1.1.26 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: spencercw@googlemail.com
Created an attachment (id=22617) --> (http://bugs.winehq.org/attachment.cgi?id=22617) Sample program showing the bug
A simple example program is attached. Any attempt to use _mktime64 with a date after ~2038 (i.e., any date that would require a 64-bit timestamp) returns -1 in Wine, but works ok in Windows (the example program shows 29348006400, tested WinXP 32 and Win7 64, cross compiled mingw32 4.4.0).
Since there doesn't appear to be any way to force UNIX mktime to return a 64-bit value, I suspect the only work-around for this would be to re-implement mktime in Wine.
http://bugs.winehq.org/show_bug.cgi?id=19465
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase
http://bugs.winehq.org/show_bug.cgi?id=19465
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com 2009-10-19 16:03:29 --- Looks like valid bug, currently _mktime32 and _mktime64 is the same thing.
http://bugs.winehq.org/show_bug.cgi?id=19465
--- Comment #2 from Austin English austinenglish@gmail.com 2011-10-01 14:31:13 CDT --- Created attachment 36638 --> http://bugs.winehq.org/attachment.cgi?id=36638 compiled exe (bzip2 because >1MB)
http://bugs.winehq.org/show_bug.cgi?id=19465
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #3 from Austin English austinenglish@gmail.com 2011-10-01 14:31:25 CDT --- Still in 1.3.29.
http://bugs.winehq.org/show_bug.cgi?id=19465
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |a66ed048a32fd1cd4e8afebd262 | |b7b1b1eabfbcd Status|NEW |RESOLVED CC| |piotr.caban@gmail.com Resolution| |FIXED
--- Comment #4 from Piotr Caban piotr.caban@gmail.com 2012-12-10 15:14:24 CST --- Fixed by commit a66ed048a32fd1cd4e8afebd262b7b1b1eabfbcd.
http://bugs.winehq.org/show_bug.cgi?id=19465
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2012-12-21 13:28:53 CST --- Closing bugs fixed in 1.5.20.