See D9533. We currently count the length of combining characters incorrectly.
Instead, break the string into glyphs first, then only count the length of the base character in each glyph, ignoring combining characters.
Differential D9546
Fix phutil_utf8_console_strlen() for combining characters epriestley on Jun 15 2014, 1:08 PM. Authored by Tags None Referenced Files
Subscribers
Details See D9533. We currently count the length of combining characters incorrectly. Instead, break the string into glyphs first, then only count the length of the base character in each glyph, ignoring combining characters. Added some unit tests.
Diff Detail
Event Timeline |