For Programmers: Free Programming Magazines  


Home > Archive > Lisp > June 2005 > Re: binary file upload with CLISP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: binary file upload with CLISP
david.tolpin@gmail.com

2005-06-06, 8:57 pm



Sam Steingold wrote:
>
> <http://www.podval.org/~sds/clisp/im....html#bin-stdio>



Hi Sam,

thank you for the link; the documentation suggests that CLISP
determines that stdin is not a terminal-io stream and allows to setf
stream-element-type. The problem is that it does not. This, of course,
just means that I need to handle all of the input as binary by dup'ing
the handle through ext:make-stream in CGI scripts (instead of switching
between modes),

or just recreate behavior of all other implementations through Gray
streams; which I will do, just to bring it back to portability among
implementations. It is though that I cannot just use CLISP to read
CGI input as raw 8-bit encoding and have to resort to recreation of the
behavior through complex hooks impeding performance.

David Tolpin

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com