mode ISO output doesn't redirect to file
Original Reporter info from Mantis: Rugxulo
-
Reporter name: Rugxulo
Original Reporter info from Mantis: Rugxulo
- Reporter name: Rugxulo
Description:
Apparently, {$mode iso} output isn't able to redirect to file.
Well, it's either truncated or doesn't show up at all. (This same bug isn't present at all when compiled under {$mode tp} or default "fpc".) BTW, I'm talking raw DOS (e.g. FreeDOS using Go32v2). IIRC, a quick try on Win32 didn't show this bug at all, for whatever reason.
Adding "flush(output);" at the end of my source seems to fix / workaround the problem.
A very naive guess (briefly searching RTLSRC.ZIP) is that SYSTEM.INC's InternalExit isn't calling SysFlushStdIO when under mode ISO.
Steps to reproduce:
A very brief attempt to create an extremely small example to reproduce this didn't work. But ....
My Befunge-93 interpreter (B.PAS) isn't very big anyways (11 kb). Even though it's dumb, you can grab it here (inside BPAS.TXT, with other bagatela): https://sites.google.com/site/rugxulo/BEFI_4V.ZIP
Never mind, it might be easier to just upload it locally here, for simplicity.
Additional information:
This is not a regression, it's long been in 3.0.2 (and is even in just-released 3.0.4). I hope I identified the bug correctly.
Mantis conversion info:
- Mantis ID: 32743
- OS: FreeDOS
- OS Build: 1.2
- Build: Go32v2
- Platform: Go32v2
- Version: 3.0.2
- Fixed in version: 3.1.1
- Fixed in revision: 38301 (#be158cec)