Message341636
> 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 |
|
Date |
User |
Action |
Args |
2019-05-06 20:09:43 | eryksun | set | recipients:
+ eryksun, paul.moore, vstinner, tim.golden, jkloth, zach.ware, steve.dower, Manjusaka, CharlieClark, Dominik Geldmacher |
2019-05-06 20:09:43 | eryksun | set | messageid: <1557173383.54.0.618171699005.issue36792@roundup.psfhosted.org> |
2019-05-06 20:09:43 | eryksun | link | issue36792 messages |
2019-05-06 20:09:43 | eryksun | create | |
|