todolist: unicode file names

git-svn-id: trunk@46821 -
This commit is contained in:
mattias 2014-11-12 19:17:33 +00:00
parent 5ff4472038
commit db2eae7e30

View File

@ -62,8 +62,9 @@ interface
uses uses
// FCL, RTL, LCL // FCL, RTL, LCL
Classes, SysUtils, Math, LCLProc, Forms, Controls, Dialogs, StrUtils, ComCtrls, Classes, SysUtils, Math, LCLProc, Forms, Controls, Dialogs, StrUtils,
ActnList, AvgLvlTree, LCLType, CodeCache, CodeToolManager, BasicCodeTools, FileProcs, ComCtrls, ActnList, AvgLvlTree, LazUTF8Classes, LCLType, CodeCache,
CodeToolManager, BasicCodeTools, FileProcs,
// IDEIntf // IDEIntf
LazIDEIntf, IDEImagesIntf, PackageIntf, ProjectIntf, LazIDEIntf, IDEImagesIntf, PackageIntf, ProjectIntf,
// IDE // IDE
@ -668,7 +669,7 @@ begin
SaveDialog1.FileName:='TodoList_'+FormatDateTime('YYYY_MM_DD',now); SaveDialog1.FileName:='TodoList_'+FormatDateTime('YYYY_MM_DD',now);
if SaveDialog1.Execute then if SaveDialog1.Execute then
begin begin
CommaList:=TStringList.Create; CommaList:=TStringListUTF8.Create;
try try
CommaList.Add('Done,Description,Priority,Module,Line,Owner,Category'); CommaList.Add('Done,Description,Priority,Module,Line,Owner,Category');
i:=0; i:=0;
@ -685,7 +686,7 @@ begin
CommaList.Add(s); CommaList.Add(s);
i:=i+1; i:=i+1;
end; end;
CommaList.SaveToFile(UTF8ToSys(SaveDialog1.FileName)); CommaList.SaveToFile(SaveDialog1.FileName);
finally finally
CommaList.Clear; CommaList.Clear;
CommaList.Free; CommaList.Free;