Ticket #2244 (new bug)

Opened 7 months ago

Last modified 2 months ago

load in GHCi doesn't work with UTF-8 filenames

Reported by: malebria Assigned to:
Priority: normal Milestone: 6.10 branch
Component: GHCi Version: 6.8.2
Severity: minor Keywords:
Cc: Difficulty: Unknown
Test Case: Operating System: Unknown/Multiple
Architecture: Unknown/Multiple

Description (Last modified by igloo)

When I try to load a file with a UTF-8 character, I got:

Prelude> :load Público/codigo/haskell/Hora.hs

<no location info>: can't find file: P�blico/codigo/haskell/Hora.hs

With the command line it goes fine:

malebria@quindinho:~$ ghci Público/codigo/haskell/Hora.hs
GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
Loading package base ... linking ... done.
[1 of 1] Compiling Hora             ( Público/codigo/haskell/Hora.hs, interpreted )

Change History

05/03/08 05:43:43 changed by igloo

  • difficulty set to Unknown.
  • description changed.

05/03/08 05:57:00 changed by igloo

  • milestone set to 6.10 branch.

Thanks for the report. I suspect that this is because the IO functions ignore all but the low 8 bits of Strings. We should do something to make this work.

09/30/08 08:37:31 changed by simonmar

  • architecture changed from Unknown to Unknown/Multiple.

09/30/08 08:51:47 changed by simonmar

  • os changed from Unknown to Unknown/Multiple.