mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 09:19:14 +02:00
IDE: fixed retrieving default primary config path, if it contains non ascii chars
git-svn-id: trunk@16277 -
This commit is contained in:
parent
464c8b7362
commit
8c0e300f91
@ -172,7 +172,7 @@ begin
|
|||||||
// the last part of the path returned by GetAppConfigDir is the application
|
// the last part of the path returned by GetAppConfigDir is the application
|
||||||
// name. Replace that by 'lazarus', to make sure that lazbuild uses
|
// name. Replace that by 'lazarus', to make sure that lazbuild uses
|
||||||
// the same primary config path
|
// the same primary config path
|
||||||
PrimaryConfigPath:= ExtractFilePath(ChompPathDelim(GetAppConfigDir(False))) + 'lazarus';
|
PrimaryConfigPath:= ExtractFilePath(ChompPathDelim(SysToUTF8(GetAppConfigDir(False)))) + 'lazarus';
|
||||||
{$else}
|
{$else}
|
||||||
// fpc 2.2.0 cannot handle spaces in path in some circumstances
|
// fpc 2.2.0 cannot handle spaces in path in some circumstances
|
||||||
PrimaryConfigPath:=ChompPathDelim(ProgramDirectory);
|
PrimaryConfigPath:=ChompPathDelim(ProgramDirectory);
|
||||||
|
Loading…
Reference in New Issue
Block a user