[Issue 21849] UTF8: Loc column numbers don't respect multi-column characters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 22 23:25:28 UTC 2021


--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #1)
> Reason is that column tracking just uses simple pointer subtraction.
> https://github.com/dlang/dmd/blob/db13c6c948b4724ad8235c7063feba1241f685b4/
> src/dmd/lexer.d#L2291
Nope, I've changed my mind.  This should be handled by the dmd.errors
diagnostic routines.

The location held by Loc is correct, as it is the raw byte column number.


More information about the Digitalmars-d-bugs mailing list