Actions
Feature #6328
openExpose URI helpers to C/C++
Start date:
2024-01-26
Due date:
% Done:
0%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
Fixed in version:
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
Unlike Python, which has URL manipulation support in the standard library, C & C++ don’t make URL manipulation as convenient. While running Saxon C samples on Windows I came across a couple of places where filepath-to-URI conversion broke because handling windows separators is complex… we should at least provide a helper function for parsing filesystem paths into file URIs, given how important they are in daily use…
Updated by Matt Patterson 6 days ago
See testXSLT30.cpp
line 1151
:
string baseURI = string("file://") + sproc->getcwd();
and testXQuery.cpp
line 360
:
string baseURI = string("file://") + processor->getcwd();
Both these examples will produce bad URIs on Windows: something like file://C:\SaxonDev\not\a\real\uri.xml
Please register to edit this issue
Actions