X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Fwin32-dlls.sgml;h=b1f894dca103c4e7e23422eaf3257293776c400c;hb=6eb0b82ea41cd45f576d96951a352db2ae59f769;hp=48eb7aba84404e3b07112ea739c5e3f46e373001;hpb=4f79ea245b27e3c56d0dd6657649bd0d7d0e3f67;p=ghc-hetmet.git diff --git a/ghc/docs/users_guide/win32-dlls.sgml b/ghc/docs/users_guide/win32-dlls.sgml index 48eb7ab..b1f894d 100644 --- a/ghc/docs/users_guide/win32-dlls.sgml +++ b/ghc/docs/users_guide/win32-dlls.sgml @@ -54,11 +54,14 @@ Some of the standard Haskell libraries behave slightly differently on Windows. -On Windows, the '^Z' character is interpreted as end-of-file, so -if you read a file containing this character the file will appear to end just before it. -To subvert this behaviour, you can put the file into Binary -mode using GHC.Handle.hSetBinaryMode. (unfortunately this -function isn't available form anywhere more stable, yet). +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.