From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 92702BB84 for ; Wed, 4 Jun 2008 06:29:18 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvQBACa3RUjAXQImiGdsb2JhbACSBAEBAQ8gnjg X-IronPort-AV: E=Sophos;i="4.27,586,1204498800"; d="scan'208";a="13461578" Received: from discorde.inria.fr ([192.93.2.38]) by mail3-smtp-sop.national.inria.fr with ESMTP; 04 Jun 2008 06:29:18 +0200 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m544TH6t018280 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 4 Jun 2008 06:29:17 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhAEAK+2RUhQDPJfZGdsb2JhbACRdxgGAwQHEAaeNQ X-IronPort-AV: E=Sophos;i="4.27,586,1204498800"; d="scan'208";a="11528441" Received: from smtp27.orange.fr ([80.12.242.95]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Jun 2008 06:29:17 +0200 Received: from smtp27.orange.fr (mwinf2722 [10.232.12.122]) by mwinf2715.orange.fr (SMTP Server) with ESMTP id A94A61C0EAB3 for ; Mon, 2 Jun 2008 14:00:39 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2722.orange.fr (SMTP Server) with ESMTP id CA4111C0009E; Mon, 2 Jun 2008 14:00:38 +0200 (CEST) Received: from giga (AVelizy-155-1-91-100.w90-35.abo.wanadoo.fr [90.35.26.100]) by mwinf2722.orange.fr (SMTP Server) with ESMTP id A908D1C000A2; Mon, 2 Jun 2008 14:00:38 +0200 (CEST) X-ME-UUID: 20080602120038692.A908D1C000A2@mwinf2722.orange.fr Received: from ks300734.kimsufi.com ([91.121.65.225] helo=centi.ks300734.kimsufi.com) by giga with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1K38iM-0005Mb-51; Mon, 02 Jun 2008 14:00:38 +0200 Received: from gildor by centi.ks300734.kimsufi.com with local (Exim 4.69) (envelope-from ) id 1K38iF-0004iW-Ew; Mon, 02 Jun 2008 14:00:31 +0200 Date: Mon, 2 Jun 2008 14:00:31 +0200 From: "'Sylvain Le Gall'" To: David Allsopp Cc: "'John Whitington'" , caml-list@inria.fr Subject: Re: [Caml-list] Re: Pipes and Standard Output / Input on Windows Message-ID: <20080602120031.GA16386@gallu.homelinux.org> References: <37E71E9C-58BA-4530-B6A0-5C8DACE9A714@coherentgraphics.co.uk> <4CA29E0FF2BC43FC9A7585F496BE65EF@countertenor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CA29E0FF2BC43FC9A7585F496BE65EF@countertenor> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Miltered: at discorde with ID 48461A1D.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; le-gall:01 0100,:01 stdin:01 stdout:01 translated:01 wrote:01 caml-list:01 archives:02 binary:02 binary:02 output:02 seems:03 dev:04 pipes:04 pipes:04 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. Regards Sylvain Le Gall