Opened 9 years ago

Closed 9 years ago

#3443 closed bug (duplicate)

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

Reported by: yb2 Owned by:
Priority: normal Milestone:
Component: GHCi Version: 6.10.4
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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: --- 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.

Change History (1)

comment:1 Changed 9 years ago by simonmar

difficulty: Unknown
Resolution: duplicate
Status: newclosed

6.12.1 will have Unicode support in the IO library which mostly fixes this problem. The rest is fixed by #3398.

Note: See TracTickets for help on using tickets.