Re: [xml] xmlNewInputFromFile URI problems on Win32



On 02.11.2006 09:31, Michael Day wrote:
Hi,

Ho,

When I call this on Windows:

     input = xmlNewInputFromFile(ctxt, "c:\\foo.xml");

the resulting input->filename looks like this:

     file:///c%3A/foo.html

Should the colon really be escaped?

Yes. See Daniel's answer to this.

Even worse, calling xmlPathToURI gives this:

     file%3A///c%253A/foo.html

This appears to have been doubly escaped. Are there some issues with URL handling on Windows?

Damn me. This is a godforsaken issue. I'll fix it tomorrow.

Ciao,
Igor




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]