caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Pipes and Standard Output / Input on Windows
@ 2008-05-29 13:39 John Whitington
  2008-05-29 14:36 ` Sylvain Le Gall
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: John Whitington @ 2008-05-29 13:39 UTC (permalink / raw)
  To: caml-list

Hullo.

I'm compiling OCaml command-line software with the MSVC toolchain on  
Windows. Users have noticed two problems:

(a) When output (such as the --help) is done on Windows, the help  
doesn't all show (I fixed this by flushing stdout manually - but  
shouldn't stdout be flushed when the process exits anyway?)

(b) Chaining invocations of the tool together using pipes on Windows  
often fails. The second process in the chain gets an End_Of_File after  
only a few hundred bytes of data. I've confirmed the data is all being  
output by the first process, and the first process is exiting cleanly.  
All the open_in and open_out calls are using the _bin variant. The  
data being sent down the pipe is a PDF file (which contains binary  
sections).

Neither of these problems occur on Linux / Mac builds - is there  
something about windows pipes I should know?

-- 
John Whitington
Coherent Graphics Ltd
http://www.coherentpdf.com/


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-06-04  4:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-29 13:39 Pipes and Standard Output / Input on Windows John Whitington
2008-05-29 14:36 ` Sylvain Le Gall
2008-05-29 22:11   ` [Caml-list] " David Allsopp
2008-05-30 15:12     ` Sylvain Le Gall
2008-05-29 22:16 ` [Caml-list] " David Allsopp
2008-06-01 21:06 ` Sylvain Le Gall
2008-06-02  7:36   ` [Caml-list] " John Whitington
     [not found]     ` <4CA29E0FF2BC43FC9A7585F496BE65EF@countertenor>
2008-06-02 12:00       ` 'Sylvain Le Gall'
2008-06-02 12:46     ` David Allsopp
2008-06-02 17:57       ` John Whitington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).