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/



_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to