Skip to content

System.Directory.getCurrentDirectory doesn't work on win32 if the current directory has non-ascii characters in its name

If you create a path with an international character in it (accented letters are not enough, but russian characters or the euro symbol "€" is), and you try to call getCurrentDirectory from there (e.g. with ghci), it raises an exception:

Prelude System.Directory> getCurrentDirectory
*** Exception: SetCurrentDirectory: does not exist (The system cannot find the file specified.)
Trac metadata
Trac field Value
Version 6.10.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/directory
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information