X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FIO%2FHandle%2FText.hs;fp=GHC%2FIO%2FHandle%2FText.hs;h=23b9cddf674c05c4fd0adbc0c2cf2baf73525fad;hb=86f17a7e1baca0cf0db659be60aaeea562e32a47;hp=b0f3a24fb80dd85cec25a1334bf77291eba0638a;hpb=3689c8ff0c75a7bf1f8714421847703269652a83;p=ghc-base.git diff --git a/GHC/IO/Handle/Text.hs b/GHC/IO/Handle/Text.hs index b0f3a24..23b9cdd 100644 --- a/GHC/IO/Handle/Text.hs +++ b/GHC/IO/Handle/Text.hs @@ -95,7 +95,7 @@ hWaitForInput h msecs = do return True else do -- there might be bytes in the byte buffer waiting to be decoded - cbuf' <- readTextDeviceNonBlocking handle_ cbuf + cbuf' <- decodeByteBuf handle_ cbuf writeIORef haCharBuffer cbuf' if not (isEmptyBuffer cbuf') then return True else do