[Issue 23474] New: Grapheme should end after carriage return if not followed by line feed.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 10 14:38:13 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23474
Issue ID: 23474
Summary: Grapheme should end after carriage return if not
followed by line feed.
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: Ajieskola at gmail.com
The only time a grapheme can continue after carriage return is when it's
followed by a line feed character. Otherwise it must break, even if followed by
an extending character: https://www.unicode.org/reports/tr29/tr29-41.html#GB4.
Thus
---
byGrapheme("\r\u0308").walkLength.writeln;
---
...should print 2, but it currently prints 1.
--
More information about the Digitalmars-d-bugs
mailing list