www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23474] New: Grapheme should end after carriage return if not

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 puremagic.com
          Reporter: Ajieskola 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.

--
Nov 10 2022