[issue36792] [Windows] time: crash on formatting time with de_DE locale
Charlie Clark
report at bugs.python.org
Mon May 6 11:58:37 EDT 2019
Charlie Clark <charlie.clark at clark-consulting.eu> added the comment:
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)
count: 28
value: b'Mitteleurop\xe4ische Sommerzeit'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36792>
_______________________________________
More information about the Python-bugs-list
mailing list