You've already forked lazarus-ccr
RxFPC:fix work on windows with non ansi (russian) chars in windows user name
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3976 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -75,7 +75,7 @@ function IniReadInteger(IniFile: TObject; const Section, Ident:string;
|
|||||||
|
|
||||||
function GetDefaultIniRegKey: string;
|
function GetDefaultIniRegKey: string;
|
||||||
implementation
|
implementation
|
||||||
uses Registry, Forms, FileUtil;
|
uses Registry, Forms, FileUtil, LazUTF8;
|
||||||
|
|
||||||
function GetDefaultSection(Component: TComponent): string;
|
function GetDefaultSection(Component: TComponent): string;
|
||||||
var
|
var
|
||||||
@ -113,8 +113,8 @@ begin
|
|||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
Result := ExtractFileName(ChangeFileExt(Application.ExeName, '.ini'));
|
Result := ExtractFileName(ChangeFileExt(Application.ExeName, '.ini'));
|
||||||
S:=GetAppConfigDir(false);
|
S:=SysToUTF8(GetAppConfigDir(false));
|
||||||
ForceDirectory(S);
|
ForceDirectoriesUTF8(S);
|
||||||
Result:=S+Result;
|
Result:=S+Result;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user