From:
Daisuke Maki <daisuke [at] wafu.ne.jp>
Date:
Thu, 10 Oct 2002 22:15:13 -0700
To:
"axkit-users [at] axkit.org" <axkit-users [at] axkit.org>
Subject:
Re: XSP.pm "use strict" errors
> Just downgrade your XML::LibXML to 1.52 until Christian fixes this bug > in XML::LibXML. Thanks. The workaround for this particular bug is fairly simple, and can be done on AxKit side, see attatched patch (a simple grep indicated that XSP.pm is the only module that uses these constants, so hopefully this fixes everything) However, after fixing this problem I encountered another big problem with XML::LibXML::Common::encodeToUTF8. Something is seriously wrong when AxKit tries to encode the text nodes of an XSP file... I haven't done any extended tests, but it seemed like it was somehow failing to convert a newline character... (that's what $node->getData() returned. It beats me why iconv reported and error indicating that there were 4 bytes in that sequence, though) Anyway *THAT* made me downgrade to XML::LibXML 1.52. I suppose I could have avoided it by cut n' pasting the code for encodeToUTF8 from XML::LibXML 1.52 to XML::LibXML::Common, but that was too much :) --d Index: lib/Apache/AxKit/Language/XSP.pm
===================================================================
RCS file: /home/cvspublic/xml-axkit/lib/Apache/AxKit/Language/XSP.pm,v
retrieving revision 1.22
diff -u -r1.22 XSP.pm
--- lib/Apache/AxKit/Language/XSP.pm 10 Sep 2002 16:27:30 -0000
1.22
+++ lib/Apache/AxKit/Language/XSP.pm 11 Oct 2002 05:03:54 -0000
@@ -930,6 +930,13 @@
package AxKit::XSP::SAXParser;
use XML::LibXML 1.30;
+BEGIN
+{
+ if($XML::LibXML::VERSION >= 1.53) {
+ require XML::LibXML::Common;
+ XML::LibXML::Common->import( qw/ :libxml :encoding / );
+ }
+}
sub new {
my ($type, %self) = @_;
XSP.pm "use strict" errors - dean.l.chang.verizon.com on 7 Oct 2002 17:55:00 -0000
Re: XSP.pm "use strict" errors - Matt Sergeant on 9 Oct 2002 19:38:15 -0000
Re: XSP.pm "use strict" errors - Daisuke Maki on 11 Oct 2002 05:22:10 -0000
Back up to archives |
These pages are copyright © 2002 Apache Software Foundation


Index