ghci can't find ghc.exe on Windows 7 if the path contains spaces
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.
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | GHCi |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |