#1286: GHC doesn't accept ISO-8859-1
-------------------------+--------------------------------------------------
Reporter: Regidor | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.6
Severity: major | Keywords: ISO-8859-1 unicode Latin-1
Difficulty: Unknown | Testcase:
Architecture: x86 | Os: Linux
-------------------------+--------------------------------------------------
According to
http://www.haskell.org/ghc/docs/latest/html/users_guide/bugs-and-
infelicities.html#vs-Haskell-defn
GHC only accepts ISO-8859-1, but, when I try to compile this source file
in ISO-8859-1:
{{{
module Main where
main :: IO ()
main = do putStrLn "año"
}}}
I obtain:
{{{
main.hs:3:21:
lexical error in string/character literal (UTF-8 decoding error)
}}}
And, if I save the source as UTF-8 it does compile, but, when running the
program, it prints "a".
Regards,
Antonio Regidor García
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1286>
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