mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-02 20:07:15 +01:00
IDE: simplified code
git-svn-id: trunk@50724 -
This commit is contained in:
parent
b48a3ea89e
commit
75f2d2c3a2
@ -951,13 +951,9 @@ begin
|
||||
fs:=TFileStreamUTF8.Create(Filename,fmCreate);
|
||||
try
|
||||
if fExtraOptions<>'' then begin
|
||||
{$IFDEF MSWindows}
|
||||
// Under Windows FPC expects console codepage for command line params
|
||||
// FPC expects console codepage for command line params
|
||||
// and system codepage in config files
|
||||
OptionsAsText:=UTF8ToWinCP(BreakExtraOptions);
|
||||
{$ELSE}
|
||||
OptionsAsText:=UTF8ToSys(BreakExtraOptions);
|
||||
{$ENDIF}
|
||||
fs.Write(OptionsAsText[1],length(OptionsAsText));
|
||||
end;
|
||||
finally
|
||||
|
||||
Loading…
Reference in New Issue
Block a user