Author eryksun
Recipients CharlieClark, Dominik Geldmacher, Manjusaka, eryksun, jkloth, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-05-06.20:09:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557173383.54.0.618171699005.issue36792@roundup.psfhosted.org>
In-reply-to
Content
> 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
History
Date User Action Args
2019-05-06 20:09:43eryksunsetrecipients: + eryksun, paul.moore, vstinner, tim.golden, jkloth, zach.ware, steve.dower, Manjusaka, CharlieClark, Dominik Geldmacher
2019-05-06 20:09:43eryksunsetmessageid: <1557173383.54.0.618171699005.issue36792@roundup.psfhosted.org>
2019-05-06 20:09:43eryksunlinkissue36792 messages
2019-05-06 20:09:43eryksuncreate