toxic icon indicating copy to clipboard operation
toxic copied to clipboard

Nicknames are cutted strangely in groupchats

Open Renha opened this issue 8 years ago • 2 comments

In the userlist of groupchat, nickname

[☯]S☠ǚll[☣]

looks like

[☯]S☠ǚll[

while

Ihatenicknames

perfectly fits, so that's not lenght-related issue.

Renha avatar Mar 01 '17 15:03 Renha

Utf8 strings are hard huh?

GrayHatter avatar Mar 01 '17 17:03 GrayHatter

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.

JFreegman avatar Mar 01 '17 22:03 JFreegman

Closing due to inactivity

JFreegman avatar Jan 25 '24 19:01 JFreegman