So what I did was to copy/paste text from a unix text file, with \n
endings into a textarea.

I used ns_queryget to get the text into a tcl var and wrote it to a
file. The file had crlf endings. Then I did the following to fix things
up:

set fd2 [open $filename r]
set inString [read $fd2]
close $fd2
set fd3 [open $filename w]
puts $fd3 $inString
close $fd3

See, tcl is supposed to automatically convert crlf to \n when it reads
in the data. Obviously this isn't happening when data come through
ns_sock.

tom jackson


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to