Wrong converting
Original Reporter info from Mantis: acid
-
Reporter name: Pavel Glukhikh
Original Reporter info from Mantis: acid
- Reporter name: Pavel Glukhikh
Description:
When I convert Delphi project to Lazarus if project has a method called FileFind, Deletefile, DirectoryExists Lazarus convert it to FileFindUTF8,DeleteFileUTF8.
Ok. But Lazarus did not see these methods.
After converting project don't work((
And I manually delete FileFindUTF8 to FileFind. This methods exists in SYSUTILS unit.. And compile project.
Or second solution : Add Unit fileprocs
either of these methods (filefind and etc) have not changed, either automatically added to units - fileprocs
Additional information:
I find this code in lazarus' module convertsetting.pas in line 424
Maybe this is a bug?
Or maybe Laz don't file sysutils module in project?
// Map Delphi function names to FCL/LCL functions.
with fReplaceFuncs do begin
// File name encoding.
Categ:='UTF8Names';
AddDefaultCategory(Categ);
AddFunc(Categ,'FileExists', 'FileExistsUTF8($1)', 'LCL','FileUtil');
AddFunc(Categ,'FileAge', 'FileAgeUTF8($1)',
Mantis conversion info:
- Mantis ID: 20030
- Version: 0.9.30