Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2008-06-02 (18:30)
From: John Whitington <john@c...>
Subject: Re: [Caml-list] Re: Pipes and Standard Output / Input on Windows

On 2 Jun 2008, at 13:46, David Allsopp wrote:

>> It seems this is correct. See the section "Problems with Pipes" here:
> See
> for an equivalent Postgres post but with a solution :o)
> As I mentioned in my previous post, you need to use  
> set_binary_mode_in and
> set_binary_mode_out on both stdin (to prevent ^Z ending the file)  
> and stdout
> (to prevent \n being translated to \r\n). Having done this, I get no
> problems with ^Z characters in a test piping script. Does it fix your
> problem too?

This does indeed fix the problem here. Thanks!

John Whitington
Coherent Graphics Ltd