stdout and stdin are binary in unix.
> > How do I set the CURRENT stdin/stdout stream in binary mode? There
> > seems I cann't use fdopen or freopen. It is a CGI in c. The web server
> > already hold up these streams to read and write.
> Your question is off-topic here - try comp.unix.programmer. Follow-up
set.
> --
> Duncan Bayne
> - Web http://homepages.ihug.co.nz/~dhbayne/
> - Cell (+64) (0)25 626 3023
> "The only difference between fascism and socialism is the
> degree of transparency of the methods of subjugation and
> degradation of the human spirit."
> -- Arthur Bayne