On Mon, Apr 12, 2010 at 11:48:30PM +0100, John-Mark Bell wrote:
> In theory, this patch fixes handling of file: URIs.
> It behaves correctly with the RISC OS, GTK, and framebuffer frontends.
> It needs testing with Amiga, BeOS, and Windows frontends.
Looks reasonable in general.
> Index: windows/findfile.c
> + char *url = malloc(strlen(path) + SLEN("file:///") + 1);
> + strcpy(url, "file:///");
I assume the additional / is because windows paths don't begin with a /, but
what about the fact that a lot of file URLs on windows seem to have the : of
the drive separator replaced with a | -- is this something we should handle /
care about or are we okay with that : which sort-of implies that the authority
would contain / etc.
The amiga port also seems to carry this difference.
Argh, file URIs suck.
Mostly, I think this is quite mergeable.
D.
--
Daniel Silverstone http://www.netsurf-browser.org/
PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69