projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c821b83
)
Fix #3534: No need to flush the byte buffer when setting binary mode
author
Simon Marlow
<marlowsd@gmail.com>
Wed, 23 Sep 2009 09:04:45 +0000
(09:04 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Wed, 23 Sep 2009 09:04:45 +0000
(09:04 +0000)
GHC/IO/Handle.hs
patch
|
blob
|
history
diff --git
a/GHC/IO/Handle.hs
b/GHC/IO/Handle.hs
index
b3c780e
..
a8af17c
100644
(file)
--- a/
GHC/IO/Handle.hs
+++ b/
GHC/IO/Handle.hs
@@
-551,7
+551,7
@@
hSetBinaryMode :: Handle -> Bool -> IO ()
hSetBinaryMode handle bin =
withAllHandles__ "hSetBinaryMode" handle $ \ h_@Handle__{..} ->
do
- flushBuffer h_
+ flushCharBuffer h_
let mb_te | bin = Nothing
| otherwise = Just localeEncoding