[Haskell-cafe] runInteractiveProcess and hGetLine on Windows
duncan.coutts at worc.ox.ac.uk
Wed May 7 18:31:04 EDT 2008
On Thu, 2008-05-08 at 00:12 +0200, Harri Kiiskinen wrote:
> Thank You all for the lively discussion, and of course, a nice and
> simple answer to my problem:
> On Wed, 2008-05-07 at 21:17 +0100, Duncan Coutts wrote:
> > (inh,outh,errh,pid) <- runInteractiveProcess path args Nothing Nothing
> > -- We want to process the output as text.
> > hSetBinaryMode outh False
> As to the following claim:
> > As of a couple weeks ago the docs for runInteractiveProcess even say:
> > -- The 'Handle's are initially in binary mode; if you need them to be
> > -- in text mode then use 'hSetBinaryMode'.
> At least the haskell.org standard library reference does not say this
Sorry, I wasn't clear. I meant that it was added in the development
branch a couple weeks ago.
More information about the Haskell-Cafe