#5843: hGetBufSome blocks when all available input is buffered (on Windows only)
-------------------------------+--------------------------------------------
    Reporter:  joeyadams       |       Owner:  pcapriotti                 
        Type:  bug             |      Status:  new                        
    Priority:  high            |   Milestone:  7.4.2                      
   Component:  libraries/base  |     Version:  7.2.2                      
    Keywords:                  |          Os:  Windows                    
Architecture:  x86             |     Failure:  Incorrect result at runtime
  Difficulty:  Unknown         |    Testcase:                             
   Blockedby:                  |    Blocking:                             
     Related:                  |  
-------------------------------+--------------------------------------------

Comment(by simonmar):

 I see it: the second call to `bufReadNBNonEmpty` in `hGetBufSome` is
 passing `count` along unchanged, it should use the minimum of the
 available buffer elements and `count`.  I don't have a handy Windows build
 to test this; Paulo, could you try?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5843#comment:6>
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

Reply via email to