diff options
| author | sof <unknown> | 2003-06-06 15:25:08 +0000 |
|---|---|---|
| committer | sof <unknown> | 2003-06-06 15:25:08 +0000 |
| commit | 6eb0b82ea41cd45f576d96951a352db2ae59f769 (patch) | |
| tree | 4703ef3eeca58c29f81c09ad9a4d90690dbc0773 /ghc | |
| parent | 4f79ea245b27e3c56d0dd6657649bd0d7d0e3f67 (diff) | |
| download | haskell-6eb0b82ea41cd45f576d96951a352db2ae59f769.tar.gz | |
[project @ 2003-06-06 15:25:08 by sof]
upd binary mode addition
Diffstat (limited to 'ghc')
| -rw-r--r-- | ghc/docs/users_guide/win32-dlls.sgml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ghc/docs/users_guide/win32-dlls.sgml b/ghc/docs/users_guide/win32-dlls.sgml index 48eb7aba84..b1f894dca1 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. <itemizedlist> <listitem> <para> -On Windows, the '<literal>^Z</literal>' 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 <literal>GHC.Handle.hSetBinaryMode</literal>. (unfortunately this -function isn't available form anywhere more stable, yet). +On Windows, the '<literal>^Z</literal>' 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 <literal>IOExts.openFileEx</literal> to open a file in binary +(untranslated) mode or change an already opened file handle into +binary mode using <literal>IOExts.hSetBinaryMode</literal>. The +<literal>IOExts</literal> module is part of the +<literal>lang</literal> package. </para> </listitem> </itemizedlist> |
