mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-21 11:39:27 +01:00
Handle #13#10 line ending for Windows
git-svn-id: trunk@29727 -
This commit is contained in:
parent
b823ac6755
commit
6e2b97a15c
@ -59,11 +59,20 @@ begin
|
|||||||
while FProcess.Running do
|
while FProcess.Running do
|
||||||
begin
|
begin
|
||||||
FProcess.Output.Read(C, 1);
|
FProcess.Output.Read(C, 1);
|
||||||
|
{$ifdef windows}
|
||||||
|
{ On windows we expect both #13 and #10 }
|
||||||
|
if C = #13 then
|
||||||
|
begin
|
||||||
|
FPRocess.Output.Read(C,1);
|
||||||
|
{$endif windows}
|
||||||
if C = #10 then
|
if C = #10 then
|
||||||
begin
|
begin
|
||||||
DebugLn(Result);
|
DebugLn(Result);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
{$ifdef windows}
|
||||||
|
end;
|
||||||
|
{$endif windows}
|
||||||
Result := Result + C;
|
Result := Result + C;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user