Bug in ExtractRelativepath
Original Reporter info from Mantis: darius
-
Reporter name: Darius Blaszijk
Original Reporter info from Mantis: darius
- Reporter name: Darius Blaszijk
Description:
By using the following code:
ExtractRelativePath('c:\one\two\three\test.pp','c:\one\two\three\four\five\test2.pp')
ExtractRelativePath('c:\one\two\three\four\five\test.pp','c:\one\two\three\test2.pp')
ExtractRelativePath('c:\one\two\three','c:\one\two\three\four\five\test.pp')
ExtractRelativePath('c:\one\two\three\four\five','c:\one\two\three\test.pp')
ExtractRelativePath('c:\one\two\three','c:\one\two\three\four\five')
ExtractRelativePath('c:\one\two\three\four\five','c:\one\two\three')
I got:
three\four\test2.pp
....\test2.pp
three\four\test.pp
....\test.pp
three\four<br/>
....\
The expected behavior though is:
four\five\test2.pp
....\test2.pp
four\five\test.pp
....\test.pp
four\five<br/>
....\
Attached a patch that fixes that.
Mantis conversion info:
- Mantis ID: 10224
- OS: win32
- OS Build: xp
- Platform: i386
- Version: 2.3.1
- Fixed in version: 2.2.2
- Fixed in revision: 9850 (#be1dde63)