[Issue 21849] New: UTF8: Column numbers don't respect multi-column characters
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 22 11:40:51 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21849
Issue ID: 21849
Summary: UTF8: Column numbers don't respect multi-column
characters
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
For instance:
---
void main()
{
string straße = 42;
}
---
Will report the wrong column number in the conversion error.
---
utf8error.d(3,22): Error: cannot implicitly convert expression 42 of type int
to string
string straße = 42;
^
---
The diagnostic should instead be:
---
utf8error.d(3,21): Error: cannot implicitly convert expression 42 of type int
to string
string straße = 42;
^
---
--
More information about the Digitalmars-d-bugs
mailing list