
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
participants (1)
-
Antonio Regidor García