Changeset 290 for Common/UCommon.pas


Ignore:
Timestamp:
Nov 4, 2011, 11:42:45 AM (13 years ago)
Author:
george
Message:
  • Added: Unit UMemory for manipulation with memory block. Unit contains simple class TPositionMemory for storing position with memory block and mimic behaviour of TMemoryStream.
  • Fixed: Deleting files with special national characters.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/UCommon.pas

    r282 r290  
    77uses
    88  {$IFDEF Windows}Windows,{$ENDIF}
    9   Classes, SysUtils, SpecializedList, StrUtils, Dialogs, Process,
     9  Classes, SysUtils, StrUtils, Dialogs, Process,
    1010  FileUtil; //, ShFolder, ShellAPI;
    1111
     
    102102  Path := IncludeTrailingPathDelimiter(APath);
    103103
    104   Find := FindFirst(Path + AFileSpec, faAnyFile xor faDirectory, SearchRec);
     104  Find := FindFirst(UTF8Decode(Path + AFileSpec), faAnyFile xor faDirectory, SearchRec);
    105105  while Find = 0 do begin
    106     DeleteFile(Path + SearchRec.Name);
     106    DeleteFileUTF8(Path + UTF8Encode(SearchRec.Name));
    107107
    108108    Find := SysUtils.FindNext(SearchRec);
Note: See TracChangeset for help on using the changeset viewer.