LCL: fixed ofFileMustExist for non-UTF8 system charset.

git-svn-id: trunk@15606 -
This commit is contained in:
vincents 2008-06-28 18:51:39 +00:00
parent 2e9c3b92a6
commit c8713eb786

View File

@ -193,7 +193,7 @@ end;
function TOpenDialog.CheckFileMustExist(const AFileName: string): boolean;
begin
if not FileExists(AFilename) then begin
if not FileExists(Utf8ToAnsi(AFilename)) then begin
Result:=false;
MessageDlg(rsfdFileMustExist,
Format(rsfdFileNotExist,[AFileName]),mtError,
@ -319,7 +319,7 @@ end;
function TSelectDirectoryDialog.CheckFileMustExist(const AFilename: string): boolean;
begin
if not DirPathExists(AFilename) then begin
if not DirPathExists(Utf8ToAnsi(AFilename)) then begin
Result:=false;
MessageDlg(rsfdDirectoryMustExist,
Format(rsfdDirectoryNotExist,[AFileName]),mtError,