cvs commit: hugs98/src input.c

Sigbjorn Finne sof@galois.com
Sun, 9 Dec 2001 15:44:11 -0800


"Johan Nordlander" <nordland@cse.ogi.edu> writes:
> 
> So I'm going to check in a second variant where I have made the 
> multi-platform linefeed handling conditional (MULTI_LINEFEED).  
> It's currently turned on by default, but I can easily be 
> persuaded to turn it off.  However, the fix is pretty simple, 
> it's really useful, and I also claim it's robust.
> 

That makes good sense. I trust your judgement about the default
setting. If any issues should arise, rolling a patch & new binary
bundles is not much work.

> To support that claim I've updated the test suite to test both 
> plain and literate sources in three different newline formats 
> (the last 6 tests in the static suite).  This currently works 
> very well on unix and MacOS, but it needs to be checked under 
> Windows as well.  Would you be able to verify this?  If the test 
> script can be run under Windows, all you have to do is load the 
> files tests/static/Plain*.hs and tests/static/Lit*.lhs, and 
> verify that the line number in the error messages are consistent 
> (lines 6 and 9, respectively).
> 

I tried this under both "cmd.exe" and "bash", and the line numbers
come out right.

--sigbjorn