Skip Menu |

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 285
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: Mitchell.Bass [...] compuware.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.31
Fixed in: (no value)



Subject: Unable to create ISO-8859-2 encoded documents
Distribution: XML::LibXML-1.31 Perl: This is perl, version 5.005_03 built for sun4-solaris Machine hardware: sun4u OS version: 5.7 Processor type: sparc Hardware: SUNW,Ultra-80 A. Seg Faults and core dumps occur when trying to CREATE ISO-8859-2 encoded docs (source code follows)... 1. my $doc = XML::LibXML::Document->createDocument("1.0", "ISO-8859-2"); (BTW, specifying the encoding "ISO-8859-1" works fine.) 2. my $parser = XML::LibXML->new(); my $doc = $parser->parse_file('test_encode.xml'); (the xml declaration specifies ISO-8859-2 encoing...file shown below) (BTW, specifying the encoding "ISO-8859-1" works fine.) my $root = $doc->getDocumentElement; my $new_node = $doc->createElement("newnode"); [test_encode.xml] <?xml version="1.0" encoding="ISO-8859-2"?> <editsession created="date + time" modifies="/iwmnt/default/main/cmlite/WORKAREA/mitchell/html_repos itory/Polska_man2.html"><edit name="source" action="update">/iwmnt/default/main/cmlite/WORKAREA/mitc hell/html_repository/Polska_man2.html</edit><edit name="filter" action="update">modifysource.xsl</ed Show quoted text
it><edit name="refresh" action="update">true</edit><edit name="viewMode" action="update">editview</e
Show quoted text
dit><edit name="treeMode" action="update">hide</edit><edit name="HTML_1.BODY_1.TABLE_1.TBODY_1.TR_1.
TD_3.TABLE_1.TBODY_1.TR_4.TD_1.TABLE_1.TBODY_1.TR_1.TD_4.A_1-href" action="update">Polska.html</edit>