Fix string length in pack_string()
Specification says that strings are encoded as sequences of UTF-8 characters preceded by length in bytes. But the length was calculated as a number of UTF-8 characters. So packing of strings with non-ASCII characters was broken.
Showing
Please register or sign in to comment