Hello,

I'm using 1!:2&4 to write to stdout for a web application. I want to 
send raw binary data, but it always ends up corrupted. Upon closer 
inspection, it turns out that all LF's are changed into CRLF.

This is easily verifiable. Open jconsole.exe (tested in J5, J6, and J7), 
declare this for your convenience:

echo =: 1!:2&4

Then try the following:

echo ''
echo LF
echo CR
echo CRLF

Notice that "echo CR" is one line shorter than "echo LF"?

I'd like to know if there's a way to turn that off somehow. To have J 
keep LF as LF and not append CR before it.

Thanks,

Martin
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to