Ticket #1828 (closed merge: fixed)

Opened 6 years ago

Last modified 5 years ago

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

Reported by: guest Owned by: igloo
Priority: normal Milestone: 6.8.2
Component: Compiler Version: 6.8.1
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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

Output :

'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.

Change History

Changed 6 years ago by igloo

  • milestone set to 6.8.2

Thanks for the report. As well as fixing this, we should change bindisttest to install into "install here" rather than "installed" so we can catch regressions in this.

Changed 6 years ago by simonmar

  • owner set to simonmar

I'm looking at this. The problem is the way we invoke windres, it seems.

Changed 6 years ago by simonmar

  • owner changed from simonmar to igloo
  • type changed from bug to merge

Fixed:

Thu Nov 15 07:57:47 PST 2007  Simon Marlow <simonmar@microsoft.com>
  * FIX #1828: installing to a patch with spaces in 

Changed 6 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Merged

Changed 5 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple
Note: See TracTickets for help on using tickets.