Skip to content

bpo-34373: Fix time.mktime() on AIX#12726

Merged
vstinner merged 2 commits intopython:masterfrom
vstinner:mktime_aix
Apr 9, 2019
Merged

bpo-34373: Fix time.mktime() on AIX#12726
vstinner merged 2 commits intopython:masterfrom
vstinner:mktime_aix

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Apr 8, 2019

  • Fix time.mktime() on AIX: fix code checking for mktime() failure
    for years before 1970.
  • mktime(): rename variable 'buf' to 'tm'.
  • _PyTime_localtime(): avoid abs() which is limited to int type,
    use "localtime" rather than "ctime" in the error message.
  • _PyTime_localtime(): EINVAL constant is now always available.
  • _PyTime_localtime(): initialize errno to 0 just in case if
    localtime_r() doesn't set errno on error.

https://bugs.python.org/issue34373

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants