It appears that my previous patch was always using String.length. This new one uses UTF8.length on valid UTF8 strings and String.length on others.
** Patch added: "headache-utf8.patch" https://bugs.launchpad.net/ubuntu/+source/headache/+bug/1083216/+attachment/3588397/+files/headache-utf8.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1083216 Title: Wrong line length for headers that are neither pure ASCII nor UTF-8 encoded To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/headache/+bug/1083216/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs