11.4. Differences in library behaviour
Prev | Chapter 11. Running GHC on Win32 systems | Next

## 11.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
11.3. Interacting with the terminal | Home | 11.5. Using GHC (and other GHC-compiled executables) with cygwin