[issue36792] [Windows] time: crash on formatting time with de_DE locale

Eryk Sun report at bugs.python.org
Mon May 6 16:09:43 EDT 2019


Eryk Sun <eryksun at gmail.com> added the comment:

> libc = ctypes.cdll.msvcrt

That's the private CRT of Windows, not the Universal CRT for applications. In a release build (python.exe), use ctypes.CDLL('ucrtbase', use_errno=True). In a debug build (python_d.exe), use ctypes.CDLL('ucrtbased', use_errno=True).

I suppose we should use API sets [1] for the release build, such as "api-ms-win-crt-locale-l1-1-0" and 
"api-ms-win-crt-time-l1-1-0". But they resolve to "ucrtbase". 

[1]: https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-extension-apis

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36792>
_______________________________________


More information about the Python-bugs-list mailing list