#3398: Unicode output in GHC
---------------------------------+------------------------------------------
    Reporter:  simonmar          |        Owner:                  
        Type:  bug               |       Status:  new             
    Priority:  high              |    Milestone:  6.12.1          
   Component:  Compiler          |      Version:  6.11            
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:  2816              |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by judahj):

 I don't think that'll fix it, unfortunately.  For example, using non-
 interactive ghc-6.11 we get similar issues:

 {{{
 $ ghc-stage2 --make fooα/Foo.hs
 [1 of 1] Compiling Foo              ( fooα/Foo.hs, fooα/Foo.o )

 fooα/Foo.hs:3:0:
     The type signature for `β' lacks an accompanying binding
 }}}

 As I understand it, the code path is:
  - getArgs returns a !FilePath with the 'α' encoded as two separate 8-bit
 Chars; the !FilePath is stored as-is in the !ModLocation.
  - The status message calls showModMsg, which takes the !FilePath and
 sticks it in the middle of a String message, still with two undecoded
 bytes.
  - That String is eventually printed to a text Handle, causing those two
 bytes to be incorrectly re-encoded.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3398#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to