From: Pascal J. B. <pj...@in...> - 2009-10-21 10:23:59
|
On Oct 21, 2009, at 12:15 PM, Leslie P. Polzer wrote: > > Pascal J. Bourguignon wrote: > >> If this works, then you could wrap it in a bivalent stream so you can >> output binary data directly. But as I mentionned in my previous >> message, it's a bad idea to output binary data to the standard >> output, >> that is possibly to a terminal. > > This is pretty common and not a bad idea at all in a CGI or pipe > context, > though. You still have to be careful. If you redirect sb-ext:*stdout*, this is a stream that would be used (indirectly) by the debugger, so you will have to deal with it either by making it a bivalent stream or by handing errors and/or redirecting the debugger to another stream. -- __Pascal Bourguignon__ http://www.informatimago.com |