Skip Menu |

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

Report information
The Basics
Id: 7891
Status: rejected
Worked: 10 min
Priority: 0/
Queue: XML-LibXML

People
Owner: pajas [...] matfyz.cz
Requestors: bjoern [...] hoehrmann.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.58_1
Fixed in: (no value)



Subject: XML::LibXML::Dtd fails to load paths with \
Hi, XML::LibXML::Dtd->new("...", "c:/...") works but as soon as the / is replaced by \ as in XML::LibXML::Dtd->new("...", "c:\\...") the constructor returns undef.
Not a bug. The constructor takes a public id and a system id, where system id, according to the XML spec (http://www.w3.org/TR/2004/REC-xml-20040204/#dt-sysid) translates to an URL. Hence, the correct way to encode Windows paths as URLs is file:///c:/path/to/resource.