[Issue 1104] CodeView: char is marked 0x20 (T_UCHAR) instead of 0x10 (T_CHAR)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 20 21:38:00 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=1104

--- Comment #8 from Rainer Schuetze <r.sagitario at gmx.de> ---
(In reply to Andrei Alexandrescu from comment #7)
> @Rainer is this a D2 issue as well? If so how can we address it?

Yes, wchar looks ok, dchar is emitted as an uint, i.e. the character is not
displayed in the debugger.

VS2019's C++ compiler emits T_CHAR32 for a char32_t variable and displays it
correctly, using that with dmd works, too (after a small patch to mago, it
shows it as wchar right now).

I guess it should be ok to switch to T_CHAR32, ignoring ancient debuggers that
might not support it.

--


More information about the Digitalmars-d-bugs mailing list