git-annex/Database
Joey Hess 23d71423e1
work around ghc segfault
hSetEncoding of a closed handle segfaults.
https://ghc.haskell.org/trac/ghc/ticket/7161

8484c0c197 introduced the crash.
In particular, stdin may get closed (by eg, getContents) and then trying
to set its encoding will crash. We didn't need to adjust stdin's
encoding anyway, but only stderr, to work around
https://github.com/yesodweb/persistent/issues/474

Thanks to Mesar Hameed for assistance related to reproducing this bug.
2016-12-30 18:14:19 -04:00
..
Keys refactor 2016-10-17 14:58:33 -04:00
Fsck.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Handle.hs work around ghc segfault 2016-12-30 18:14:19 -04:00
Keys.hs remove unused imports 2016-10-18 16:16:47 -04:00
Queue.hs fix build with pre-AMP GHC 2015-12-28 12:41:47 -04:00
Types.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00