This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jkloth
Recipients CharlieClark, Dominik Geldmacher, Manjusaka, eryksun, jkloth, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-05-07.02:22:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Thanks for the reminder Eryk Sun.  This means the test needs to be run yet one more time :)

import ctypes, locale, struct
crt_time = ctypes.CDLL('api-ms-win-crt-time-l1-1-0', use_errno=True)
locale.setlocale(locale.LC_ALL, 'de_DE')
buf = ctypes.create_string_buffer(1024)
tm = struct.pack('9i', 2019, 5, 6, 9, 50, 4, 0, 126, 1)
print('count:', crt_time.strftime(buf, 1024, b'%Z', tm))
print('value:', buf.value)
wbuf = ctypes.create_unicode_buffer(1024)
print('count:', crt_time.wcsftime(wbuf, 1024, '%Z', tm))
print('value:', wbuf.value)
crt_convert = ctypes.CDLL('api-ms-win-crt-convert-l1-1-0', use_errno=True)
print('count:', crt_convert.mbstowcs(wbuf, buf, 1024))
print('value:', wbuf.value)
Date User Action Args
2019-05-07 02:22:53jklothsetrecipients: + jkloth, paul.moore, vstinner, tim.golden, zach.ware, eryksun, steve.dower, Manjusaka, CharlieClark, Dominik Geldmacher
2019-05-07 02:22:53jklothsetmessageid: <>
2019-05-07 02:22:53jklothlinkissue36792 messages
2019-05-07 02:22:53jklothcreate