#7161: hSetNewlineMode and hSetEncoding can be performed on closed and semi-closed handles ---------------------------------+------------------------------------------ Reporter: duncan | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: libraries/base | Version: 7.6.1-rc1 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by igloo):
* difficulty: => Unknown * milestone: => 7.8.1 Comment: Can you give us a way to reproduce the segfault please? I tried: {{{ module Main (main) where import System.IO main :: IO () main = do h <- openFile "tmp" WriteMode hPutStrLn h "Test" hClose h hSetEncoding h utf8 hSetEncoding h utf32 hSetEncoding h utf8 print h }}} {{{ $ ghc --make q $ ./q {handle: tmp} }}} but got no segfault. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7161#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs