using readln on TMemoryStream opened with AssignStream return empty strings
Original Reporter info from Mantis: luca @olivluca
-
Reporter name: Luca Olivetti
Original Reporter info from Mantis: luca @olivluca
- Reporter name: Luca Olivetti
Description:
The attached test program prints 3 lines but they are empty --- --- --- If I remove the "stream.position:=0", or I use $H- (or line:shortstring) or I avoid the RStream procedure (i.e I put what it does in the main program) or I use fpc 3.0.4 it correctly prints
--- a --- b
--- c
Additional information:
See the mailing list thread starting here https://lists.freepascal.org/pipermail/fpc-pascal/2019-October/056925.html
Mantis conversion info:
- Mantis ID: 36147
- Build: svn revision 43147 (fixes_3_2)
- Version: 3.2.0
- Fixed in version: 3.3.1
- Fixed in revision: 43512 (#d27126b6)
- Monitored by: » @flyingsheep (Bart Broersma), » @zeljan1 (Zeljan Rikalo)
- Target version: 3.2.0