Skip Menu |

This queue is for tickets about the Mac-PropertyList-SAX CPAN distribution.

Report information
The Basics
Id: 63066
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Mac-PropertyList-SAX

People
Owner: kulp [...] cpan.org
Requestors: bpohl [...] ingz-inc.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.84
Fixed in: (no value)



Subject: Double XHTML encoding
Dist: Mac-PropertyList-SAX 0.84 Perl: All (Seen on v5.10.0 MacOSX and v5.8.8 CentOS) I've fixed the problems the way I'd have it and am attaching a copy of our version. See the POD in the file. Basically our iPhone App needed the raw UTF-8 to display so that's what we wanted in the plist we wee generating. A small set of characters needed to be XHTML escaped for the plist (quotes, etc.). The 0.84 version was actually encoding the data twice by calling _escape() once from create_from_ref and again from the write subclasses. Fixing this is the only change in the default behavior of the new version and can be controlled by setting $OLD_BEHAVIOR. Also, the variable $ENCODE_ENTITIES was defined but never used. It now functions, plus I added $ENCODE_UNSAFE_CHARS which if $ENCODE_ENTITIES is set (the default) can used to give a character class set limiting the characters to encode. I hope this is useful and can be incorporated into the release version.
Subject: SAX.pm

Message body is not shown because it is too large.

From: kulp [...] cpan.org
Thanks very much ! I hope to get to this tonight ; I suspect I will have a new distribution out by the weekend.
From: kulp [...] cpan.org
Version 0.85 with your changes is posting to CPAN at the moment. Now I just have to figure out where my RT controls are.
Now that I logged in with my PAUSE account, I can actually update the bug. Thanks again for the report. I believe the bug to be resolved, since I essentially committed the SAX.pm version attached by Bion Pohl wholesale, after some formatting changes, and updating of a testcase.