一个修正,因为我在我的简体中文XP系统,debug到的中文文件名是“???”这种形式,所以,改为这个:
//Lazsub2010.pas
//procedure _GetFileList
...
if FindFirst(Utf8ToAnsi(sour_path+sour_file),faAnyfile,FileRec) = 0 then //2010/09/15 加入 utf8toansi()
repeat
if ((FileRec.Attr and faDirectory) = 0) then
begin
//TmpList.Add(sour_path+FileRec.Name);
TmpList.Add(sour_path+AnsiToUtf8(FileRec.Name)); //修正
end;
until FindNext(FileRec)<>0;