Mail Archives: djgpp-workers/1999/01/27/02:56:14
On Tue, 26 Jan 1999, Mark E. wrote:
> 2) Have files handled by input.c be read in binary mode, and have any
> CRs read in be ignored. Then all the additional logic above doesn't
> need to be added and the current EOL logic can be removed.
>
> #2 seems like a better solution to me, so that will be one I try first.
Given your description, I would definitely go for #2. It is
invariably the best solution whenever a program has to cope with
unpredictable EOL formats.
Just make sure binary reads are only used for file (as opposed to
console) input.
- Raw text -