Skip to content

GHCi produces a panic on printing and escaped GBP sign, and won't print gbp sign either

Prelude> putStrLn "£" � Prelude> putStrLn "\£" ghc: panic! (the 'impossible' happened)

(GHC version 6.10.4 for i386-unknown-linux):

charType: '\163'

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

I've also compiled a bit of code with GHC that can't output GBP symbol either.

Tested with Hugs for comparison,

Hugs> putStrLn "£" £

Hugs> putStrLn "\£" ERROR - Illegal character escape sequence "\�"

I tested the outputting (not the escaping) in roxterm and xterm, and both output the question mark in a diamond symbol.

Trac metadata
Trac field Value
Version 6.10.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information