Bug 20992 – Missing symbols in winapi bindings, related to locals
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2020-06-29T09:29:39Z
Last change time
2022-02-07T19:18:01Z
Assigned to
No Owner
Creator
Basile-z
Comments
Comment #0 by b2.temp — 2020-06-29T09:29:39Z
reported on IRC:
>[06:05] <spikespaz> source\common.d(6): Error: module core.sys.windows.winnls import LCIDToLocaleName not found
>[06:05] <spikespaz> source\common.d(6): Error: module core.sys.windows.winnls import LOCALE_NAME_MAX_LENGTH not found
>[06:05] <spikespaz> source\common.d(6): Error: module core.sys.windows.winnls import LOCALE_ALLOW_NEUTRAL_NAMES not found
Comment #1 by b2.temp — 2020-06-29T09:30:55Z
user has fixed this by declaring
---
extern (Windows) {
int LCIDToLocaleName(LCID, LPWSTR, int, DWORD);
enum uint LOCALE_NAME_MAX_LENGTH = 0x55;
enum uint LOCALE_ALLOW_NEUTRAL_NAMES = 0x08000000;
}
---
so this could be put in core bindings.