[mercury-users] carriage return escaping

Richard A. O'Keefe ok at atlas.otago.ac.nz
Tue Aug 28 16:10:09 AEST 2001


Michael Day <mikeday at bigpond.net.au> wrote:
	Can anyone explain why the output of the program below is:
	... on my system rather than:

So what _is_ your system?  What C compiler?  If a UNIX-like system,
did you use "od -c" to inspect the output, or what?

	'\r' seems to be converted into the number 13 in the generated C code,
	which seems correct. "\r" is getting converted to ^M, not sure exactly
	what that is in this case.
	
Control-M is the ASCII/ISO 646/ISO 8859/ISO 10646 control character
"Carriage Return".  Can't think of any ASCII-based system where \r
wouldn't be Control-M.

--------------------------------------------------------------------------
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