Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


As I assume mostly everyone knows by now, I’ve been reading through our codebase for my online book 
at https://www.gitbook.com/book/chrissherlock1/inside-libreoffice/details 
<https://www.gitbook.com/book/chrissherlock1/inside-libreoffice/details>

I’ve lately been looking at how the OSL handles URIs (as an aside, our codebase is ancient, so 
ancient we still call them file URLs, not URIs). 

However, I’ve hit a genuine quandry. When we convert from system paths to file URIs, the RFC that 
details the file URI spec (RFC 8089) handles everything except for system paths on POSIX systems 
that start with double slashes. POSIX defines the behaviour of initial double slashes as 
implementation specific, however I cannot see anywhere in the RFC where it describes how to handle 
initial double slashes in file URIs. 

I’ve actually emailed the author of the RFC, but in case he doesn’t get back to me I thought I’d 
ask on the mailing list. This is genuinely obscure and unlikely to ever bite us on the rear, but 
one thing other than writing my book is to try to ensure our test converage caters for these corner 
cases. 

Chris


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.