13.4. Differences in library behaviour
Prev | Chapter 13. Running GHC on Win32 systems | Next

## 13.4. 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 | Up | Next
13.3. Interacting with the terminal | Home | 13.5. Using GHC (and other GHC-compiled executables) with cygwin