[m-rev.] .NET I/O rewrite

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Oct 20 00:09:30 AEST 2002


On 19-Oct-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> library/io.m:
> 	Rewrite most of the .NET I/O routines.
> 	The previous version didn't work.
> 
> 	This required splitting some of the higher-level routines such as
> 	io__do_open and io__read_char_code into two versions, one for text
> 	and one for binary.

I forgot to mention: with this change, we now correctly generate
text files in DOS/Windows format, rather than Unix format.

This means that if you want to run the test suite for the `il' or `ilc'
grades, you should make sure you have a version of the test suite which
is in DOS format (in particular the `.exp*' files need to be in DOS format).
If you're using Cygwin, this can be obtained by checking out the test suite
in a directory which is mounted in text mode
(which you can get via e.g. `mount --text C: /text').

(The source code also has some support for opening files in Unix format,
by setting ML_default_file_encoding to ML_Unix_file_format rather than
ML_OS_file_format.  But currently this is not used.)

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list