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.1 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 501CFBB84 for ; Mon, 2 Jun 2008 20:30:31 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmUBANPQQ0jAXQIniGdsb2JhbACSAgEBAQ8gnBU X-IronPort-AV: E=Sophos;i="4.27,578,1204498800"; d="scan'208";a="13387940" Received: from concorde.inria.fr ([192.93.2.39]) by mail3-smtp-sop.national.inria.fr with ESMTP; 02 Jun 2008 19:57:23 +0200 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m52HurvM001431 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 2 Jun 2008 19:57:20 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq4GAIbRQ0hVDf8pZWdsb2JhbACSAhICHpwV X-IronPort-AV: E=Sophos;i="4.27,578,1204498800"; d="scan'208";a="13107493" Received: from colo3.ukhost4u.com ([85.13.255.41]) by mail1-smtp-roc.national.inria.fr with ESMTP; 02 Jun 2008 19:57:19 +0200 Received: from [91.84.121.145] (helo=[192.168.0.8]) by colo3.ukhost4u.com with esmtpa (Exim 4.69) (envelope-from ) id 1K3EHU-0002Kj-NA; Mon, 02 Jun 2008 18:57:16 +0100 Cc: "'Sylvain Le Gall'" , Message-Id: <9BEAB9A5-5279-4054-A4E5-0A3382FDBD87@coherentgraphics.co.uk> From: John Whitington To: David Allsopp In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Subject: Re: [Caml-list] Re: Pipes and Standard Output / Input on Windows Date: Mon, 2 Jun 2008 18:57:16 +0100 References: <3C72DA5E-36A7-411B-AFFA-EE26DA74D9B5@coherentgraphics.co.uk> <37E71E9C-58BA-4530-B6A0-5C8DACE9A714@coherentgraphics.co.uk> X-Mailer: Apple Mail (2.924) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - colo3.ukhost4u.com X-AntiAbuse: Original Domain - inria.fr X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - coherentgraphics.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Miltered: at concorde with ID 48443465.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; stdin:01 stdout:01 translated:01 46,:98 wrote:01 caml-list:01 archives:02 graphics:02 binary:02 binary:02 output:02 seems:03 dev:04 pipes:04 pipes:04 On 2 Jun 2008, at 13:46, 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 too? This does indeed fix the problem here. Thanks! -- John Whitington Coherent Graphics Ltd http://www.coherentpdf.com/