Hello again!
I was struggling with a mysterious issue where a character in my calendar was getting mangled.
After quite a lot of research I pinned it down to the way serialize counts line length. The implementation allows it to break a line in the middle of a character.
For example, ⌘ requires 3 bytes to encode. If it occurs on a line after 74 bytes, the folding routine breaks in the middle of it.
I've made a fix on my fork with some tests to pin down the behaviour:
fawkesley@67e08db
Happy to raise a pull request (in a rush atm), but just wanted to show you what I found for now.
Hello again!
I was struggling with a mysterious issue where a character in my calendar was getting mangled.
After quite a lot of research I pinned it down to the way
serializecounts line length. The implementation allows it to break a line in the middle of a character.For example,
⌘requires 3 bytes to encode. If it occurs on a line after 74 bytes, the folding routine breaks in the middle of it.I've made a fix on my fork with some tests to pin down the behaviour:
fawkesley@67e08db
Happy to raise a pull request (in a rush atm), but just wanted to show you what I found for now.