shizmob / pydle

An IRCv3-compliant Python 3 IRC library.
BSD 3-Clause "New" or "Revised" License
154 stars 47 forks source link

Long UTF-8 message got truncated #189

Open Mosesofmason opened 1 year ago

Mosesofmason commented 1 year ago

When trying to send a long message that includes UTF-8 characters, pydle messages consistently truncate the end of the message rather than splitting it into two. For instance, when I send using:

await self.message (target=target, message="一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十" )

I received a garbled text at the end of the message, and the remainder of the message was lost.

image

ASCII message is OK.