UTF-8 + Hsc2hs

Taru Karttunen taruti at taruti.net
Tue Jan 19 22:31:13 EST 2010

GHC 6.12.1 hsc2hs seems to have an issue with compiling sources
that contain certain UTF-8 charactes in the comments.

It contains code like:

    showCChar c    = ['\\',
                      intToDigit (ord c `quot` 64),
                      intToDigit (ord c `quot` 8 `mod` 8),
                      intToDigit (ord c          `mod` 8)]

which quite obviously fails if c is a code point with a large
ord value (like japanese text for example).

This affects at least HsOpenSSL.

- Taru Karttunen

More information about the Glasgow-haskell-users mailing list