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;
|
||||
implementation
|
||||
uses Registry, Forms, FileUtil;
|
||||
uses Registry, Forms, FileUtil, LazUTF8;
|
||||
|
||||
function GetDefaultSection(Component: TComponent): string;
|
||||
var
|
||||
@ -113,8 +113,8 @@ begin
|
||||
else
|
||||
begin
|
||||
Result := ExtractFileName(ChangeFileExt(Application.ExeName, '.ini'));
|
||||
S:=GetAppConfigDir(false);
|
||||
ForceDirectory(S);
|
||||
S:=SysToUTF8(GetAppConfigDir(false));
|
||||
ForceDirectoriesUTF8(S);
|
||||
Result:=S+Result;
|
||||
end;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user