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.0 required=5.0 tests=none 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 65220BB84 for ; Mon, 2 Jun 2008 15:08:28 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnoBABOOQ0jAXQIniGdsb2JhbACSAQEBAQ8gmkg X-IronPort-AV: E=Sophos;i="4.27,577,1204498800"; d="scan'208";a="13373076" Received: from concorde.inria.fr ([192.93.2.39]) by mail3-smtp-sop.national.inria.fr with ESMTP; 02 Jun 2008 15:08:26 +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 m52D8O6x020167 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 2 Jun 2008 15:08:25 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjcBAI6NQ0jC2fJZb2dsb2JhbACSAQEMBQIGBRMDmj0 X-IronPort-AV: E=Sophos;i="4.27,577,1204498800"; d="scan'208";a="13091478" Received: from anchor-post-31.mail.demon.net ([194.217.242.89]) by mail1-smtp-roc.national.inria.fr with ESMTP; 02 Jun 2008 15:08:25 +0200 Received: from orion.metastack.com ([80.177.38.218]) by anchor-post-31.mail.demon.net with esmtp (Exim 4.67) id 1K39lw-00019k-4u for caml-list@inria.fr; Mon, 02 Jun 2008 13:08:24 +0000 Received: from orion.metastack.com (IDENT:25@localhost [127.0.0.1]) by orion.metastack.com (8.13.4/8.13.3) with ESMTP id m52CxBxO003693 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 2 Jun 2008 13:59:57 +0100 Received: (from defang@localhost) by orion.metastack.com (8.13.4/8.13.3/Submit) id m52CcRW2003571 for ; Mon, 2 Jun 2008 13:38:27 +0100 X-Authentication-Warning: orion.metastack.com: defang set sender to using -f Received: from countertenor (156-32-32-212.diowest-ll.ll.ftech.net [212.32.32.156]) by orion.metastack.com (envelope-sender ) (MIMEDefang) with ESMTP id m52CcFxp003569; Mon, 02 Jun 2008 13:38:27 +0100 (BST) From: "David Allsopp" To: "'John Whitington'" , "'Sylvain Le Gall'" Cc: References: <3C72DA5E-36A7-411B-AFFA-EE26DA74D9B5@coherentgraphics.co.uk> <37E71E9C-58BA-4530-B6A0-5C8DACE9A714@coherentgraphics.co.uk> Subject: RE: [Caml-list] Re: Pipes and Standard Output / Input on Windows Date: Mon, 2 Jun 2008 13:46:30 +0100 Organization: MetaStack Solutions Ltd. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <37E71E9C-58BA-4530-B6A0-5C8DACE9A714@coherentgraphics.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Thread-Index: AcjEgkaj6LDRotJNSSynVKFhKqlp8QALFjLg X-Scanned-By: MIMEDefang 2.63 on 172.16.28.218 X-Miltered: at concorde with ID 4843F0C8.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; stdin:01 stdout:01 translated:01 caml-list:01 archives:02 binary:02 binary:02 output:02 seems:03 dev:04 pipes:04 pipes:04 fix:05 problem:05 standard:07 > 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? David