behaviour change in getDirectoryContents in GHC 7.2?

Ganesh Sittampalam ganesh at
Tue Nov 1 08:16:52 CET 2011


I'm just investigating what we can do about a problem with darcs'
handling of non-ASCII filenames on GHC 7.2.

The issue is apparently that as of GHC 7.2, getDirectoryContents now
tries to decode filenames in the current locale, rather than converting
a stream of bytes into characters:

I found an old thread on the subject: and
some GHC tickets (e.g.

Can anyone point me at the rationale and details of the change and/or
suggest workarounds?



More information about the Glasgow-haskell-users mailing list