• Victor Stinner's avatar
    bpo-34373: Fix time.mktime() on AIX (GH-12726) · 8709490f
    Victor Stinner yazdı
    Fix time.mktime() error handling on AIX for year before 1970.
    
    Other changes:
    
    * mktime(): rename variable 'buf' to 'tm'.
    * _PyTime_localtime():
    
      * Use "localtime" rather than "ctime" in the error message
        (specific to AIX).
      * Always initialize errno to 0 just in case if localtime_r()
        doesn't set errno on error.
      * On AIX, avoid abs() which is limited to int type.
      * EINVAL constant is now always available.
    8709490f
2019-04-08-14-41-22.bpo-34373.lEAl_-.rst 68 Bytes