6

I've just learned that some unicode codepoints (like 𘀀) are wider than 1 cell in a normal monospace terminal

Yay, i hecking love unicode
(i want to die)

Comments
  • 4
    Aaaahhhhhh wait till you meet graphemes. Hangul is it's own special hell. I wrote a grapheme clustering thing a while ago and compared mine with 3 other implementations of the unicode standard and got 4 different results. They were all wrong in some way or another.
  • 4
    Correct! There’s a posix(?) c function to get the width if I remember correctly: wcharw

    Edit: so close for having used it over 5 years ago. It’s wcwidth in wchar.h
Add Comment