Bugs item #1212959, was opened at 2005-06-01 11:53 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1212959&group_id=8032
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Compiler (Parser) Group: 6.4 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: lexical error with non-ascii chars in literals Initial Comment: For GHC 6.4 on SuSE Linux 9.2 (installed from the GHC RPM). When including SOME non-ascii characters in character or string literals, in the source code, I get a "lexical error in string/character literal" error message. Examples are some french accents and german umlauts - �,�,�. However, with other characters from the same set (like ��) there is no problem, they are processed correctly I checked with Hugs and there were no problems, so it seems to be a GHC bug. For further questions send email to: Rainer Volz, mail at vrtprj.com ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-06-02 09:24 Message: Logged In: NO Ah ok, I read so much about Haskell and Unicode that I didn't think about that. My system uses UTF-8 as standard encoding, so Emacs saves the source file also in that encoding. Using ISO-8859-1 as encoding to save the file helps with the lexical error. However the strings are still not displayed correctly. I tried it with texts in wxhaskell windows and with simple putStr "�o" scripts. Do I have to change my system's encoding to IOS8859-1 to get proper results? ---------------------------------------------------------------------- Comment By: Simon Marlow (simonmar) Date: 2005-06-02 01:32 Message: Logged In: YES user_id=48280 It works fine for me. What encoding are you using? GHC only understands the Latin-1 (ISO8859-1) encoding for source files. If you are using Latin-1, then please attach a source file that we can test. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1212959&group_id=8032 _______________________________________________ Glasgow-haskell-bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
