
19 Nov
2004
19 Nov
'04
1:34 a.m.
Matthew Danish <mrd+nospam@cmu.edu> writes:
This quick hack counts the number of carriage returns that need to be subtracted from the file-position. It runs quickly enough on large (15msec to count CRs for 4481 lines in a file I am testing) files that I think it should be acceptable, unless someone has a better idea. I don't know if 7.0 has this problem as well; if not then this could be conditionalized.
The problem is the same with 7.0 if I open a file with DOS-style eol-conversion. At least on Linux. The Allegro manual says something about #\newline#\linefeed -> \#newline conversion under Windows, but I didn't understand when exactly it is used. Let's use your patch until somebody encounters a real problem. Helmut.