[Haskell-cafe] ghci can't load file whose name contains non-ASCII chars?
alexey.skladnoy at gmail.com
Wed Mar 28 12:17:06 CEST 2012
On Wed, Mar 28, 2012 at 11:49 AM, Ivan Lazar Miljenovic
<ivan.miljenovic at gmail.com> wrote:
> On 28 March 2012 18:44, Johannes Waldmann <waldmann at imn.htwk-leipzig.de> wrote:
>> I must be making some obvious mistake here,
>> but I'm not seeing it. The file name contains O-umlaut,
>> and the OS handles it fine, but ghci does not like it
>> (although it accepts umlauts in the contents of the file
>> (UTF-8) e.g., as a module name)
I looks like GHC correctly decodes command line parameters and then
truncates them to 8-bit.
$ ghci ффф
Could not find module `DDD'
>>> fromEnum 'ф' `mod` 256 == fromEnum 'D'
More information about the Haskell-Cafe