
#6037: Compile-time crash with sources with non-representable unicode characters ---------------------------------+------------------------------------------ Reporter: akio | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.4.1 Keywords: | Os: Linux Architecture: Unknown/Multiple | Failure: Compile-time crash Difficulty: Unknown | Testcase: T6037 Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by igloo): * testcase: => T6037 * milestone: 7.6.2 => 7.8.1 Comment: I think that we want to do something along the lines of: {{{ enc <- mkIconvEncoding TransliterateCodingFailure localeEncodingName hSetEncoding stdout enc hSetEncoding stderr enc }}} but that means using internal modules, doing different things on different platforms, etc. Instead: I think we should be able to just do: {{{ hSetEncodingFailureMode stdout TransliterateCodingFailure hSetEncodingFailureMode stderr TransliterateCodingFailure }}} I've added a test. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/6037#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler