News for hackers. Stuff that matters.
Re:Terminal Emulators Battle Royale – Unicode Edition by _a_a_a_ on Sunday December 24, 2023 @11:03AM (#38754353)
Yes, I understand a little about Unicode in this kind of problem, but a code point is an individual logical item even if it is composed of multiple bytes; being a kind of 'string' in itself. I should have asked more carefully, what would be a better system in your view?

Thanks for the link, will check it out after Christmas.

Re:Terminal Emulators Battle Royale – Unicode Edition by lor_louis on Tuesday December 26, 2023 @07:44PM (#38777730)
I personally believe that Swift's strings where graphemes are the smallest indexable unit are the gold standard for writing logic that might truncate multilingual text. It's still not perfect though, they add overhead and updates to Unicode might change behaviour so there's that but it should handle most cases gracefully.