Version française
Home     About     Download     Resources     Contact us    
Browse thread
Pipes and Standard Output / Input on Windows
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Allsopp <dra-news@m...>
Subject: RE: [Caml-list] Pipes and Standard Output / Input on Windows
> All the open_in and open_out calls are using the _bin variant. The  
> data being sent down the pipe is a PDF file (which contains binary  
> sections).

Why is open_in_bin needed to access stdin and stdout? I've personally had no
problems chaining processes in OCaml under Windows (and the particular
chaining is the control program for a Win32 Service so it's a long-lived
process chain) though I did need to use set_binary_mode_in and
set_binary_mode_out on stdin, stdout and stderr to disable OCaml's \r\n
masking but I think that was for an application-specific reason rather than
because something didn't work with the pipes.


David