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

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

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.

  
Loading...