#2189: hSetBuffering stdin NoBuffering doesn't work on Windows
--------------------------------------------+-------------------------------
Reporter: FalconNL | Owner:
Type: bug | Status: new
Priority: high | Milestone: 6.10.2
Component: libraries/base | Version: 6.8.2
Severity: normal | Resolution:
Keywords: hsetbuffering buffering buffer | Difficulty: Unknown
Testcase: | Architecture: x86
Os: Windows |
--------------------------------------------+-------------------------------
Comment (by Deewiant):
Heh, I just noticed that `_get_osfhandle` is used about 30 lines down from
the code I was looking at last time. Thanks for the heads up. Using it
this might be fixable with a lot less work by just changing the `read`
call in `IOWorkerProc` to a `ReadFile`.
The threaded RTS seems to end up in `__hscore_PrelHandle_read` in
`libraries/base/include/HsBase.h` which is again just a `read` call and
might be convertable to `ReadFile` without too much trouble.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2189#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs