Closed H3rnand3zzz closed 1 year ago
Thanks for the good description. Actually I like it so much that I think maybe it would be good to add the description of the PR also at the end of the already existing commit description? I think combined they give a good picture of whats going on.
It looks a bit too long for a commit description and formatting is probably going to be broken, so it would be better to just reference this PR link in the commit description + fix typos there. In a few hours I am going to do just that.
It looks a bit too long for a commit description and formatting is probably going to be broken, so it would be better to just reference this PR link in the commit description + fix typos there
IMO there's no "too long" commit message if it's reasonable.
GH is not guaranteed to stay as long as the commit history and I'd also prefer to have it in the commit message.
Thanks!
A bit hard to reproduce. You need to add a plugin with the following code (or any other plugin with
prof_pre_chat_message_display
present, such as emoticons.py):and then receive/send message with incorrectly encoded character, it can be any invalid UTF8 symbol. You'll see error in console, errors don't represent actual errors in plugins, but rather Profanity's shortcoming, though it make appear so that the problem is in plugin.
Actual proper handling would likely be using
y
instead ofs
format (see reference)to
since there is a problem with
s
:In python such problem can be handled using
errors='ignore'
in bytes.decode or in a more sophisticated manner, depending on needs and realization.