jgoerzen/hpodder — pull request #13 by kevinoid (2013-05-25 04:25:27+00:00)
Title: Fix UTF-8 BOM stripping

Revert commit d3a7eb94.

After commit bd08d07c, openBinaryFile is used to read file contents
rather than readFile. When using openBinaryFile, the UTF-8 BOM, if
present, will appear as 3 separate characters. Strip these characters.

Note: It seems to me that HaXml should be responsible for stripping the
BOM after it is used for charset detection, as described in the XML
specs. But I'm not familiar enough with HaXml to determine if this is
due to how it is being used by hpodder or by design.

Signed-off-by: Kevin Locke