
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 (http://haskell.org/ghc/docs/latest/html/libraries/process/System-Process.htm...)
Sorry, I wasn't clear. I meant that it was added in the development branch a couple weeks ago. http://darcs.haskell.org/libraries/process/System/Process.hs Duncan