1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-23 01:52:48 +03:00

uri: Only set file scheme for special Windows paths

Fixes 2ce70cde.

Also fix a test case.
This commit is contained in:
Nick Wellnhofer
2024-06-23 21:51:52 +02:00
parent ec47add47c
commit 54c6c7e416
2 changed files with 33 additions and 19 deletions

View File

@@ -416,11 +416,11 @@ testBuildRelativeUri(void) {
}, {
"file:///a/b1/c1",
"/a/b2/c2",
"../b1/c1"
NULL
}, {
"/a/b1/c1",
"file:///a/b2/c2",
"../b1/c1"
NULL
}, {
"a/b1/c1",
"/a/b2/c2",
@@ -428,7 +428,7 @@ testBuildRelativeUri(void) {
}, {
"/a/b1/c1",
"a/b2/c2",
"file:///a/b1/c1"
NULL
}, {
"http://example.org/a/b1/c1",
"http://example.org/a/b2/c2",
@@ -490,11 +490,11 @@ testBuildRelativeUri(void) {
}, {
"/a/b1/c1",
"y:/a/b2/c2",
"file:///a/b1/c1"
NULL
}, {
"\\server\\a\\b1\\c1",
"\\\\server\\a\\b1\\c1",
"a/b2/c2",
"file:///server/a/b1/c1"
"file://server/a/b1/c1"
}
#endif
};