freenode/#slime - IRC Chatlog
Search
7:49:27
Shinmera
Doing something like (let ((string (make-string 1000))) (map-into string (lambda () (code-char (random #xFFFF)))))
7:49:51
Shinmera
Invalid protocol message: Error during string-to-utf8: Unable to encode character 28320 as :UTF-8.
7:50:25
Shinmera
This is very annoying if the string occurs in a backtrace, as SLDB fails to launch at all
8:12:38
Shinmera
You can try the snippet yourself, it'll very likely produce a similar error with different code points.
8:14:22
Shinmera
I stumbled on this because I'm implementing unicode algorithms and want to test my stuff against random garbage attacks. Debugging that without SLDB is... troublesome.
8:19:56
luis
My memory is fuzzy but there are some non-characters but it's probably only CCL that's pedant about it.
8:30:27
Shinmera
Hmm. I think the error message is misleading and points to a character close to an invalid one.
8:30:48
Shinmera
Because if I explicitly ignore the D800-DFFF range in my random generator there's no more faults
8:53:06
Shinmera
I don't have time to debug this further. The behaviour is too confusing for me to know what to do at this point
8:54:00
Shinmera
Ignoring the invalid range in my constructed examples is good enough for now, but it would be better if Slime either replaced or removed invalid characters when sending stuff over, since the current semi-crashing behaviour is far less than ideal.