Skip to content

ghc doesn't properly quote space-containing paths on Windows.

  1. Install ghc 6.8.1 on Windows XP to "C:\Program Files\ghc\".[[BR]]
  2. Run ghc newton.hs (any hs file should work here) from your home directory.

Output :[[BR]]

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\ghc\bin/windres: no resources

Something somewhere in the compilation process seems to try to run something in "C:\Program Files\ghc\" but, even though the program it wants to run has spaces in its path, it doesn't quote it properly.

Trac metadata
Trac field Value
Version 6.8.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture Multiple
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information