You've already forked lazarus-ccr
fix UTF8 file scan
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2539 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -79,7 +79,7 @@ type
|
||||
end;
|
||||
|
||||
implementation
|
||||
uses {RxStrUtils, }strutils, RxAppUtils;
|
||||
uses FileUtil, strutils, RxAppUtils, LazUTF8;
|
||||
|
||||
function MenuItemStr(S:string):string;
|
||||
var
|
||||
@ -139,7 +139,7 @@ begin
|
||||
AFileList:=TStringList.Create;
|
||||
AFolderList.Sorted:=true;
|
||||
try
|
||||
R:=FindFirst(S+AllMask,faAnyFile, Rec);
|
||||
R:=FindFirstUTF8(S+AllMask,faAnyFile, Rec);
|
||||
while R=0 do
|
||||
begin
|
||||
if ((Rec.Attr and faDirectory) <>0) and (Rec.Name<>'.') and (Rec.Name<>'..') then
|
||||
@ -149,9 +149,9 @@ begin
|
||||
if AnsiLowerCase(ExtractFileExt(Rec.Name))=AnsiLowerCase(FDefaultExt) then
|
||||
AFileList.Add(S+Rec.Name);
|
||||
end;
|
||||
R:=FindNext(Rec);
|
||||
R:=FindNextUTF8(Rec);
|
||||
end;
|
||||
FindClose(Rec);
|
||||
FindCloseUTF8(Rec);
|
||||
CreateSubItems;
|
||||
CreateItems;
|
||||
finally
|
||||
|
Reference in New Issue
Block a user