toxic
toxic copied to clipboard
Nicknames are cutted strangely in groupchats
In the userlist of groupchat, nickname
[☯]S☠ǚll[☣]
looks like
[☯]S☠ǚll[
while
Ihatenicknames
perfectly fits, so that's not lenght-related issue.
Utf8 strings are hard huh?
The reason this happens is because some Unicode characters are more than one byte, e.g. strlen("☯") might be equal to 2 or 3. Nicks are truncated based on the length that toxcore supplies, and toxic doesn't take into account the varying unicode character sizes. It's fixable, but very complicated/low priority.
Closing due to inactivity