#3837: hsc2hs and utf-8
---------------------------------+------------------------------------------
Reporter: TaruKarttunen | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: hsc2hs | Version: 6.12.1
Keywords: | Difficulty:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Description changed by igloo:
Old description:
> 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.
New description:
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#comment:4>
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