[GHC] #9987: GHC refuses to compile a file that starts with a Byte Order Mark (BOM)
GHC
ghc-devs at haskell.org
Fri Jan 16 14:34:12 UTC 2015
#9987: GHC refuses to compile a file that starts with a Byte Order Mark (BOM)
-------------------------------------+-------------------------------------
Reporter: Henk-Jan | Owner:
Type: feature request | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 7.10.1-rc1
Resolution: | Keywords:
Operating System: Windows | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by Henk-Jan):
When I remove the BOM by saving the file in ANSI coding (using Notepad), I
get the following message from GHC:
Camels.hs:152:56:
lexical error in string/character literal (UTF-8 decoding error)
This is because of an o-umlaut in the comments.
The file can be found at:
https://raw.githubusercontent.com/wxHaskell/wxHaskell/master/samples/contrib/Camels.hs
(Geany states that the file is in CP1252 code and displays it correctly)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9987#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list