wcwidth() and wcswidth() and Latin vs. CJK character width

Ed Maste emaste at freebsd.org
Fri Apr 2 20:52:14 UTC 2021


On Wed, 24 Mar 2021 at 10:37, Alexey Dokuchaev via freebsd-hackers
<freebsd-hackers at freebsd.org> wrote:
>
> Hi there,
>
> I've been wondering if there's anything like Markus Kuhn's implementation*
> in our base libraries for $subj (my quick naive search didn't turn up any
> results).  If yes, could someone point me at it?

Kuhn's implementation is in the kernel for teken
(sys/teken/teken_wcwidth.h). But, wcwidth/wcswidth are available
already in userland, is there some reason you are looking at Kuhn's
implementation specifically?


More information about the freebsd-hackers mailing list