mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 09:59:08 +02:00
* From Jakob Klos:
* assign takes care of DefaultTextLineBreakStyle when determing the line ending style, fixes 4164 git-svn-id: trunk@610 -
This commit is contained in:
parent
cfcaff7dc9
commit
0508459315
@ -81,7 +81,11 @@ Begin
|
||||
TextRec(t).BufSize:=TextRecBufSize;
|
||||
TextRec(t).Bufptr:=@TextRec(t).Buffer;
|
||||
TextRec(t).OpenFunc:=@FileOpenFunc;
|
||||
TextRec(t).LineEnd:=LineEnding;
|
||||
Case DefaultTextLineBreakStyle Of
|
||||
tlbsLF: TextRec(t).LineEnd := #10;
|
||||
tlbsCRLF: TextRec(t).LineEnd := #13#10;
|
||||
tlbsCR: TextRec(t).LineEnd := #13;
|
||||
End;
|
||||
Move(s[1],TextRec(t).Name,Length(s));
|
||||
End;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user