mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX #2945: filename issues related to Unicode Normalization (NormalizeFileName() implemented on macOS only)
This commit is contained in:
parent
a787a8fd67
commit
e2222a8a8e
1 changed files with 8 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ uses
|
|||
Classes, SysUtils,
|
||||
syncobjs, URIParser,
|
||||
LCLProc, Menus, Graphics, ShellCtrls,
|
||||
DCStrUtils,
|
||||
DCStrUtils, DCOSUtils,
|
||||
uFile, uDisplayFile, uFileProperty,
|
||||
uFileSourceWatcher,
|
||||
uFileSourceOperation, uFileSourceOperationTypes, uFileSourceProperty;
|
||||
|
|
@ -1029,7 +1029,13 @@ end;
|
|||
|
||||
function TFileSource.GetDisplayFileName(aFile: TFile): String;
|
||||
begin
|
||||
Result:= EmptyStr;
|
||||
if aFile.Name = '..' then begin
|
||||
Result:= EmptyStr
|
||||
end else begin
|
||||
Result:= NormalizeFileName( aFile.Name );
|
||||
if Result = aFile.Name then
|
||||
Result:= EmptyStr;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TFileSource.GetFileName(aFile: TFile): String;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue