Re: [dev] [st] possible bug with unicode character

From: Jochen Sprickerhof <>
Date: Tue, 12 Apr 2016 20:46:00 +0200

I found the same last December and had a look into it, but my conclusion was
that it's a bug in the font/libc, so I didn't reported my findings here.

From my notes back then:
- st expects chars to have a fixed width (see [1]).
- It uses wcwidth(3) to get the length and reserves as much space on the
- For a lot of UTF-8 emojis and symbols wcwidth return -1 (at least on
  my Debian unstable libc6 2.22-6) and st assumes a width of 1 for them
  (st.c:2937 in current HEAD).
- If the symbol in your font is actually bigger, parts of it are

So it depends on your wcwidth and font to get this effect. Patches for
both welcome ;).

Cheers Jochen


Received on Tue Apr 12 2016 - 20:46:00 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 12 2016 - 20:48:12 CEST