[Haskell-cafe] runInteractiveProcess and hGetLine on Windows

David Roundy droundy at darcs.net
Wed May 7 12:41:11 EDT 2008


On Wed, May 7, 2008 at 9:12 AM, Donn Cave <donn at avvanta.com> wrote:
>  Doesn't hGetLine imply text mode?  What does "Line" mean, otherwise?

On normal operating systems, "line" means until you reach a '\n'
character.  In fact, that's also what it means when reading in text
mode, it's just that when in text mode on DOS-descended systems, the
character sequence "\r\n" is converted to "\n" by the operating
system.

David


More information about the Haskell-Cafe mailing list