The Glasgow Haskell Compiler User's Guide, Version 6.0
Prev | Chapter 11. Running GHC on Win32 systems | Next

# 11.3. Differences in library behaviour

Some of the standard Haskell libraries behave slightly differently on Windows.

- On Windows, the '`^Z`' character is interpreted as an end-of-file character, so if you read a file containing this character the file will appear to end just before it. To avoid this, use `IOExts.openFileEx` to open a file in binary (untranslated) mode or change an already opened file handle into binary mode using `IOExts.hSetBinaryMode`. The `IOExts` module is part of the `lang` package.

Prev | Home | Next
Interacting with the terminal | Up | Using GHC (and other GHC-compiled executables) with cygwin