non ASCII characters
Antonio Regidor GarcĂa <[email protected]> Thu, 30 Sep 2004 06:39:40 +0200 (CEST)
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Message-ID | <[email protected]> |
When executing this program:
module Main where
main :: IO ()
main =3D do putStrLn aNonASCIIstring
x <- getChar
putStrLn anotherNonASCIIstring
putChar x
If the 2 strings contain only ASCII characters there is no problem, but
if they contain some non-ASCII characters (I used UTF-8) they are
displayed incorrectly. OTOH, If I input a non-ASCII character for x, it
is displayed correctly.
Also, I tried to compile it with GHC and Helium, but they produce a
compile error ("lexical error in string/character literal" and "invalid
character literal" resp.), under GNU/Linux and Windows. So I don't
think this is a problem of my locale (UTF-8) or NHC configuration. I
tried Latin-1 suplement and CJK unified ideographs, with this result.
Antonio Regidor Garc=EDa
=09
______________________________________________
Renovamos el Correo Yahoo!: =A1100 MB GRATIS!
Nuevos servicios, m=E1s seguridad
http://correo.yahoo.es