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.16:25:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here is another test, this time removing Python from the equation (mostly :)

import ctypes, struct
crt_locale = ctypes.CDLL('api-ms-win-crt-locale-l1-1-0', use_errno=True)
crt_time = ctypes.CDLL('api-ms-win-crt-time-l1-1-0', use_errno=True)
crt_locale._wsetlocale.restype = ctypes.c_wchar_p
print('old locale:', crt_locale._wsetlocale(0, 0))
tm = struct.pack('9i', 2019, 5, 6, 9, 50, 4, 0, 126, 1)
wbuf = ctypes.create_unicode_buffer(1024)
print('count:', crt_time.wcsftime(wbuf, 1024, '%Z', tm))
print('value:', wbuf.value)
print('new locale:', crt_locale._wsetlocale(0, 'de_DE'))
print('count:', crt_time.wcsftime(wbuf, 1024, '%Z', tm))
print('value:', wbuf.value)
Date User Action Args
2019-05-07 16:25:08jklothsetrecipients: + jkloth, paul.moore, vstinner, tim.golden, zach.ware, eryksun, steve.dower, Manjusaka, CharlieClark, Dominik Geldmacher
2019-05-07 16:25:08jklothsetmessageid: <>
2019-05-07 16:25:08jklothlinkissue36792 messages
2019-05-07 16:25:07jklothcreate