Subject: | Bug in XML::SAX::Writer::escape |
Date: | Fri, 13 Dec 2013 14:28:28 +0100 |
To: | bug-XML-SAX-Writer [...] rt.cpan.org |
From: | Hervé Guillemet <herve [...] guillemet.org> |
Hi,
In sub escape from XML/SAX/Writer.pm, there is :
$str =~ s/($self->{EscaperRegex})/$self->{Escape}->{$1}/oge;
In my application I have several writers that may not be initialized
with the same Escape hash, thus not the same EscaperRegex.
The /o option in the line above causes the first escaping rule being
used to be applied to all subsequent escapes fromm all writers, which is
not what is expected.
Could you release a new version with a fix ?
Thanks,
--
Hervé