Changeset 290
- Timestamp:
- Nov 4, 2011, 11:42:45 AM (13 years ago)
- Location:
- Common
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/Common.lpk
r267 r290 22 22 <License Value="GNU/GPL"/> 23 23 <Version Minor="3"/> 24 <Files Count=" 7">24 <Files Count="8"> 25 25 <Item1> 26 26 <Filename Value="StopWatch.pas"/> … … 52 52 <UnitName Value="UThreading"/> 53 53 </Item7> 54 <Item8> 55 <Filename Value="UMemory.pas"/> 56 <UnitName Value="UMemory"/> 57 </Item8> 54 58 </Files> 55 59 <i18n> -
Common/Common.pas
r251 r290 9 9 uses 10 10 StopWatch, UCommon, UDebugLog, UDelay, UPrefixMultiplier, UURI, UThreading, 11 LazarusPackageIntf;11 UMemory, LazarusPackageIntf; 12 12 13 13 implementation -
Common/UCommon.pas
r282 r290 7 7 uses 8 8 {$IFDEF Windows}Windows,{$ENDIF} 9 Classes, SysUtils, S pecializedList, StrUtils, Dialogs, Process,9 Classes, SysUtils, StrUtils, Dialogs, Process, 10 10 FileUtil; //, ShFolder, ShellAPI; 11 11 … … 102 102 Path := IncludeTrailingPathDelimiter(APath); 103 103 104 Find := FindFirst( Path + AFileSpec, faAnyFile xor faDirectory, SearchRec);104 Find := FindFirst(UTF8Decode(Path + AFileSpec), faAnyFile xor faDirectory, SearchRec); 105 105 while Find = 0 do begin 106 DeleteFile (Path + SearchRec.Name);106 DeleteFileUTF8(Path + UTF8Encode(SearchRec.Name)); 107 107 108 108 Find := SysUtils.FindNext(SearchRec); -
Common/UDebugLog.pas
r267 r290 101 101 begin 102 102 try 103 if FileExistsUTF8(FileName) then LogFile := TFileStream.Create(FileName, fmOpenWrite) 104 else LogFile := TFileStream.Create(FileName, fmCreate); 103 ForceDirectoriesUTF8(ExtractFileDir(FileName)); 104 if FileExistsUTF8(FileName) then LogFile := TFileStream.Create(UTF8Decode(FileName), fmOpenWrite) 105 else LogFile := TFileStream.Create(UTF8Decode(FileName), fmCreate); 105 106 LogFile.Seek(0, soFromEnd); 106 107 Text := FormatDateTime('hh:nn:ss.zzz', Now) + ': ' + Text + LineEnding;
Note:
See TracChangeset
for help on using the changeset viewer.