[Issue 23341] [std.uni] ZWJ not handled properly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 17 18:34:41 UTC 2022


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

--- Comment #2 from Garrett D'Amore <garrett at damore.org> ---
This problem is not limited to ZWJ:

For example:

    s2 = "\U0001F44D\U0001F3fD";
    writefln("s2 is %s\n", s2);
    writefln("graphemes %d (expect 1)\n", wr.walkLength); // this should be "1"

That is a thumbs up with a skin tone modifier.  That should be one grapheme.

--


More information about the Digitalmars-d-bugs mailing list