Bug 11275 – Constants for setlocale are incorrect

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2013-10-15T13:23:00Z
Last change time
2015-05-19T00:19:16Z
Assigned to
nobody
Creator
frank.deprins

Comments

Comment #0 by frank.deprins — 2013-10-15T13:23:40Z
The LC_xxx constants, defined in core.stdc.locale are not correct, at least not for Windows. In the headers of Microsoft Visual C++, as well as in other windows based compilers, these are defined as: #define LC_ALL 0 #define LC_COLLATE 1 #define LC_CTYPE 2 #define LC_MONETARY 3 #define LC_NUMERIC 4 #define LC_TIME 5 whereas, in core.stdc.locale, they are defined as: enum LC_CTYPE = 0; enum LC_NUMERIC = 1; enum LC_TIME = 2; enum LC_COLLATE = 3; enum LC_MONETARY = 4; enum LC_ALL = 6;
Comment #1 by dlang-bugzilla — 2015-05-19T00:19:16Z
*** This issue has been marked as a duplicate of issue 11293 ***