This had been discussed some years ago, may be there is additional file
number other than 4 for stdout that opened in binary mode. Please search
the forum archieve.

Or you may compile from J source and change stdio to binary mode under
windows.

Чтв, 04 Авг 2011, Martin Pelletier писал(а):
> 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

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to