[Bug 19465] New: _mktime64 does not work with time/dates after 2038

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jul 25 17:53:53 CDT 2009


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 at winehq.org
        ReportedBy: spencercw at 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.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list