mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 21:36:37 +02:00
e5cbbd781d
When there non printable chars, the return of the function was 1.
For example utf8_strlen_screen("abc\x01") now returns 4 instead of 1.
In addition the function has been optimized to not use the `mbstowcs` function
which is slow; result is up to 15% faster.