SysUtils.ExtractFileDrive inconsistent with Delphi
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Running the following unit test under Lazarus & Delphi produces different results! It fails under Free Pascal. I traced the difference to the ExtractFileDrive call. Under Delphi it returns 'c:' and under FPC it returns ''.
CheckEquals( '', tiUtils.tiRemoveDrive('c:'), 'Failed on 1' );
Additional information:
Reporter: Graeme Geldenhuys
EMail: graeme at mastermaths dot co dot za
Mantis conversion info:
- Mantis ID: 6491
- OS: Win32
- Version: 2.0.2
- Fixed in version: 2.2.0
- Fixed in revision: 3560 (#b9a0fae5)