Author CharlieClark
Recipients CharlieClark, Dominik Geldmacher, Manjusaka, jkloth, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-05-06.16:45:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557161110.85.0.642410469067.issue36792@roundup.psfhosted.org>
In-reply-to
Content
import ctypes, struct
libc = ctypes.cdll.msvcrt
buf = ctypes.create_string_buffer(1024)
tm = struct.pack('9i', 2019, 5, 6, 9, 50, 4, 0, 126, 1)
print('count:', libc.strftime(buf, 1024, b'%Z', tm))
print('value:', buf.value)
wbuf = ctypes.create_unicode_buffer(1024)
print('count:', libc.wcsftime(wbuf, 1024, '%Z', tm))
print('value:', wbuf.value)
print('count:', libc.mbstowcs(wbuf, buf, 1024))
print('value:', wbuf.value)

count: 28
value: b'Mitteleurop\xe4ische Sommerzeit'
count: 28
value: Mitteleuropäische Sommerzeit
count: 28
value: Mitteleuropäische Sommerzeit
History
Date User Action Args
2019-05-06 16:45:10CharlieClarksetrecipients: + CharlieClark, paul.moore, vstinner, tim.golden, jkloth, zach.ware, steve.dower, Manjusaka, Dominik Geldmacher
2019-05-06 16:45:10CharlieClarksetmessageid: <1557161110.85.0.642410469067.issue36792@roundup.psfhosted.org>
2019-05-06 16:45:10CharlieClarklinkissue36792 messages
2019-05-06 16:45:10CharlieClarkcreate