I made the change ( mode "r" to mode "rb" ) in OPEN "filename" FOR INPUT AS #1
types of statements. I also successfully completed running my standard regression tests on
6 versions of BCX that were compiled with MSVC, Clang, Mingw, Pelles, Embarcadero, and LccWin32.
I've added the following note to the Bcx Revisions.txt file:
Kevin Diggins : It was confirmed that Pelles treatment of the _ftelli64 and _fseeki64 can
cause file i/o errors. The BCX commands and functions that depend on those
functions are: SEEK, FTELL, LOOKAHEAD$, RECORD, and LONGESTLINE. I learned
that changing statements like: OPEN "filename" for INPUT AS #1 to use the
fopen "rb" mode instead of "r" mode would prevent the file i/o errors.
BCX now emits the "rb" mode for all compilers when translating statements
like: OPEN "filename" for INPUT AS #1 (fully tested, works like a charm)