logo       

Re: [GHC] #690: Accept source files in encodings other than UTF-8: msg#00076

lang.haskell.glasgow.bugs

Subject: Re: [GHC] #690: Accept source files in encodings other than UTF-8

#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
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise