English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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-04 (04:29)
From: 'Sylvain Le Gall' <sylvain@l...>
Subject: Re: [Caml-list] Re: Pipes and Standard Output / Input on Windows
On Mon, Jun 02, 2008 at 11:32:18AM +0100, David Allsopp wrote:
> > It seems this is correct. See the section "Problems with Pipes" here:
> >
> > http://dev.mysql.com/doc/refman/5.0/en/windows-vs-unix.html
> See http://archives.postgresql.org/pgsql-hackers-win32/2005-01/msg00227.php
> 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?

Sorry, i must have read too quickly.

It solve my problem indeed.

Sylvain Le Gall