#690: Accept source files in encodings other than UTF-8
-------------------------------+--------------------------------------------
Reporter: simonmar | Owner:
Type: task | Status: new
Priority: normal | Milestone: 6.6
Component: Compiler | Version: 6.5
Severity: normal | Resolution:
Keywords: | Os: Unknown
Difficulty: Moderate (1 day) | Architecture: Unknown
-------------------------------+--------------------------------------------
Comment (by igloo):
Duncan Coutts points out that, as a workaround, you can pass
{{{
-F -pgmF convert.sh
}}}
to GHC, where convert.sh contains
{{{
#!/bin/sh
( echo "{-# LINE 1 \"$2\" #-}" ; iconv -f l1 -t utf-8 $2 ) > $3
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/690>
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