ghci can't find ghc.exe on Windows 7 if the path contains spaces
|Reported by:||refold||Owned by:|
|Operating System:||Windows||Architecture:||x86_64 (amd64)|
|Type of failure:||GHCi crash||Test Case:|
|Related Tickets:||Differential Rev(s):|
This was first reported on the Haskell Platform trac. Platform installer puts binaries in
$PROGRAMFILES\Haskell Platform\$PLATFORMVERSION\bin, and this causes ghci to fail on Windows 7 (but not XP!) with 'Unable to locate ghc.exe' when run from the command line. Installing HP to
C:\hp2010 fixes the issue.
Looking at ghci.c, this is caused either by a call to
SearchPath, or a call to
GetShortPathName. The latter looks more suspect. I don't have access to a Windows 7 machine currently, so I can't fix this myself.