Page 1 of 1

Settable line termination character(s)?

Posted: Thu Jul 07, 2005 10:23 am
by HPW
On solaris it is easy to write a windows file.
You only have to append a '\r' to your line-string.
But on windows it is not so easy because the line termination characters are by default '\r\n'.
So how about a option to set the line termination characters to '\n' (like in Unix)?

Posted: Thu Jul 07, 2005 10:33 pm
by Lutz
use this:

Code: Select all

(define-macro (println-unix) 
    (apply print (map eval (args))) 
    (print "\n"))
Lutz

Posted: Fri Jul 08, 2005 6:36 am
by HPW
Thanks for the workaround.

I had used write-line and have not thought about using print.

write-related commands are quite similar than print-releated commands but differ in such details.