Public bug reported:

Ubuntu release: 12.10
package version: 1.03-22

The utf8_length patch for headache does not verify whether the header
file is encoded in UTF8 before calling UTF8.length. In particular, if
the header file uses another encoding (e.g. iso-latin-1) the result will
be incorrect, resulting in a poorly formatted output.

 The patch below only calls UTF8.length on a properly UTF8-encoded
string, and falls back to String.length otherwise.

** Affects: headache (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "patch for calling UTF8.length only on UTF8-encoded string"
   
https://bugs.launchpad.net/bugs/1083216/+attachment/3444184/+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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to