Bug 24661 – wctype_t and wctrans_t are platform-dependent
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-07-13T14:10:03Z
Last change time
2024-07-13T16:51:48Z
Keywords
pull
Assigned to
No Owner
Creator
Tim
Comments
Comment #0 by tim.dlang — 2024-07-13T14:10:03Z
The types wctype_t and wctrans_t are currently aliased to wchar_t, but that is wrong for some platforms, like Linux.
The problem was found by comparing type sizes in druntime with type sizes found with ImportC: https://github.com/dlang/dmd/pull/16571
Comment #1 by dlang-bot — 2024-07-13T14:13:43Z
@tim-dlang created dlang/dmd pull request #16689 "Fix bugzilla 24661 - wctype_t and wctrans_t are platform-dependent" fixing this issue:
- Fix bugzilla 24661 - wctype_t and wctrans_t are platform-dependent
The previous definitions are left as the default. They could still
be wrong on some other platforms.
https://github.com/dlang/dmd/pull/16689
Comment #2 by dlang-bot — 2024-07-13T16:51:48Z
dlang/dmd pull request #16689 "Fix bugzilla 24661 - wctype_t and wctrans_t are platform-dependent" was merged into master:
- a5a7db6f763e74ea709284f8b0efd3e93bb2a936 by Tim Schendekehl:
Fix bugzilla 24661 - wctype_t and wctrans_t are platform-dependent
The previous definitions are left as the default. They could still
be wrong on some other platforms.
https://github.com/dlang/dmd/pull/16689