Subject: | Bug in Mac::PropertyList when plist files have comments (<!-- -->) |
Date: | Wed, 2 Mar 2011 02:23:09 +0100 |
To: | bug-Mac-PropertyList [...] rt.cpan.org |
From: | Thebert Sebastien <sebthebert [...] gmail.com> |
Hello Brian,
first, I would like to thank you for all your work in the Perl community !
I tried your Mac::PropertyList module (version 1.33) on my Mac tonight
and it fails with my
/Applications/OpenOffice.org.app/Contents/Info.plist (attached file).
By setting the PLIST_DEBUG, I discovered that the problem was the
comments (<!-- -->) in the plist file.
This bug could be fixed (not sure it is the best solution) by adding 3
lines (attached file):
394a395,398
Show quoted text
> elsif (s[^\s*<!--(.*?)-->][]s)
> {
> print STDERR "read_dict: comment '$1' found\n" if $Debug > 1;
> }
Hope it could help to improve this module.
Regards
--
Sebastien Thebert
Message body not shown because it is not plain text.
Message body is not shown because sender requested not to inline it.