[mercury-users] carriage return escaping
    Michael Day 
    mikeday at bigpond.net.au
       
    Thu Aug 30 18:16:19 AEST 2001
    
    
  
> So what _is_ your system?  What C compiler?  If a UNIX-like system,
> did you use "od -c" to inspect the output, or what?
Linux 2.2.16 using gcc 2.96.
> 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.
Hmm. So it would appear that the string getting passed into io__write is
okay, and is merely being displayed incorrectly. However, comparing "\r"
and char_to_string('\r') does not succeed, so I'm not sure what's going
on.
Michael
--------------------------------------------------------------------------
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