projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c036187
)
docs: note that hGetBufNonBlocking isn't non-blocking on Windows
author
Simon Marlow
<marlowsd@gmail.com>
Tue, 15 Jun 2010 11:25:47 +0000
(11:25 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Tue, 15 Jun 2010 11:25:47 +0000
(11:25 +0000)
GHC/IO/Handle/Text.hs
patch
|
blob
|
history
diff --git
a/GHC/IO/Handle/Text.hs
b/GHC/IO/Handle/Text.hs
index
23b9cdd
..
e74371e
100644
(file)
--- a/
GHC/IO/Handle/Text.hs
+++ b/
GHC/IO/Handle/Text.hs
@@
-931,6
+931,9
@@
haFD h_@Handle__{..} =
--
-- 'hGetBufNonBlocking' ignores the prevailing 'TextEncoding' and
-- 'NewlineMode' on the 'Handle', and reads bytes directly.
+--
+-- NOTE: on Windows, this function does not work correctly; it
+-- behaves identically to 'hGetBuf'.
hGetBufNonBlocking :: Handle -> Ptr a -> Int -> IO Int
hGetBufNonBlocking h ptr count