Make KUrl::relativePath and KUrl::relativeUrl work correctly on Windows

Review Request #109246 - Created March 2, 2013 and submitted

Information
Michel Ludwig
kdelibs
Reviewers
kdelibs
Absolute paths can, for example, have the form "E:/MyDocuments/test/test.tex" on Windows. Currently, KUrl::_relativePath assumes that 
"E:/MyDocuments/test/test.tex" is a relative path and

  KUrl::relativePath("E:/MyDocuments/", "E:/MyDocuments/test/test.tex") 

will therefore return "E:/MyDocuments/test/test.tex" instead of "test/test.tex". The attached patch fixes this issue.

  
Allen Winter
Patrick Spendrin
Hannah von Reth
Michel Ludwig
Review request changed

Status: Closed (submitted)

Change Summary:

Has been committed to 4.10 by Patrick Spendrin in fb85444761ab159f3231677ab6a0797f7c93803b already (and merged to 'master' and 'frameworks').
Loading...