#3837: hsc2hs and utf-8
---------------------------------+------------------------------------------
Reporter: TaruKarttunen | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.12.1 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
hsc2hs is broken on a source file containing certain utf-8 characters in
the comments.
Attached is an example module.
The probable culprit is:
showCChar c = ['\\',
intToDigit (ord c `quot` 64),
intToDigit (ord c `quot` 8 `mod` 8),
intToDigit (ord c `mod` 8)]
in hsc2hs code.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3837>
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