[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#661551: Please ignore Unicode BOM at start of file



Control: reassign -1 libxml-treepp-perl 0.39-1
Control: retitle -1 libxml-treepp-perl: Please ignore Unicode BOM at start of file
Control: affects -1 libxml-feedpp-perl

Hi,

Anthony DeRobertis wrote:
> When trying to parse the feed at
> http://www.americastestkitchen.com/radio/rss/iTunesRSSFeed.xml
> FeedPP gives error:
> 
> Invalid string: [\xFEFF] before <?xml version="1.0" encoding="utf-8"?> at /usr/share/perl5/XML/FeedPP.pm line 553
[...]
> (Maybe this bug really belongs to libxml-treepp-perl,

Grepping through the source code of both modules shows that the error
message actually comes in XML::TreePP indeed:

/usr/share/perl5/XML/TreePP.pm:780:            $self->warn( "Invalid string: [$ahead] before <$match>" );

There are two new upstream versions of XML::TreePP available, but this
issue doesn't seem to be fixed upstream yet -- at least according to
http://cpansearch.perl.org/src/KAWASAKI/XML-TreePP-0.41/Changes

Maybe using File::BOM could help there.

> I'm not sure, but both modules have the same author, so...)

... so it shouldn't be an issue that the upstream bug report currently
is still file against the wrong perl module. :-)

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


Reply to: