[GHC] #690: Accept source files in encodings other than UTF-8
GHC
trac at galois.com
Mon Sep 25 09:26:30 EDT 2006
#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
More information about the Glasgow-haskell-bugs
mailing list