[nhc-bugs] non ASCII characters

Antonio Regidor García a_regidor at yahoo.es
Thu Sep 30 00:39:40 EDT 2004


When executing this program:

module Main where
main :: IO ()
main = 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ía


		
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es


More information about the Nhc-bugs mailing list