[mercury-users] Carriage return

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Aug 5 18:53:12 AEST 2002

On 05-Aug-2002, Michael Day <mikeday at yeslogic.com> wrote:
> > It works fine for me.  If you are experiencing a problem with it,
> > perhaps it is related to some detail of your environment.
> > It's hard for us to help if you don't give any details of
> > your environment or provide a reproducible test case.
> Reproducible test case:
> 	write("\r\n") produces "\n\n"

For the attached complete test case, which includes the fragment
that you quote about, I get the following results:

	bash$ mmc test.m
	bash$ ./test

In other words, the output is "\015\\n", including the quotes,
and without a trailing newline.

> Environment is rotd-2002-07-28 running on Redhat 7.3, gcc 2.96 etc.

Ah.  I tried with a later version of gcc (3.1), and was able to
reproduce the output that you reported (plus a warning from gcc).

I will fix it and post the patch to mercury-reviews shortly.

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-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe

More information about the users mailing list