mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 16:31:40 +02:00
lazutils: ExpandFileNameUTF8: fixed HOME with UTF-8
git-svn-id: trunk@53283 -
This commit is contained in:
parent
d0c5c53609
commit
887269a2be
@ -218,7 +218,7 @@ begin
|
||||
CurDir := GetCurrentDirUtf8;
|
||||
if ((Length(Fn) > 1) and (Fn[1] = '~') and (Fn[2] = '/')) or (Fn = '~') then
|
||||
begin
|
||||
HomeDir := SysToUtf8(GetEnvironmentVariable('HOME'));
|
||||
HomeDir := GetEnvironmentVariableUTF8('HOME');
|
||||
if not FileNameIsUnixAbsolute(HomeDir) then
|
||||
HomeDir := ExpandFileNameUtf8(HomeDir,'');
|
||||
Fn := HomeDir + Copy(Fn,2,length(Fn));
|
||||
|
Loading…
Reference in New Issue
Block a user