bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/4933] New: windres does not escape path with spaces in the


From: manus at eiffel dot com
Subject: [Bug binutils/4933] New: windres does not escape path with spaces in them
Date: 17 Aug 2007 16:24:01 -0000

On Windows, when installing `windres' in a path which contains spaces, it will
fail to execute even if you have the binutils in your PATH. To reproduce simply
launch windres as:

C:\apps\Eiffel60 x86/gcc/windows/mingw/bin/windres" -I../../..
../../../sample.rc -O coff -o sample
'C:\apps\Eiffel60' is not recognized as an internal or external command,
operable program or batch file.

With the -v option I get:

[C:\work\projects\61dev\EIFGENs\sample_normal\W_code]"C:\apps\Eiffel60
x86/gcc/windows/mingw/bin/windres.exe" -I../../.. ../../../sample.rc -O coff -o
sample.res -v
Using `C:\apps\Eiffel60 x86/gcc/windows/mingw/bin/gcc -E -xc -DRC_INVOKED
-I../../.. ../../../sample.rc'
Using popen to read preprocessor output
'C:\apps\Eiffel60' is not recognized as an internal or external command,
operable program or batch file.

It basically takes the path of `gcc' relative using the command line argument.
So the solution is to simply surround the path to gcc with double quotes.

For the moment I've used the `--preprocessor' option using:
"C:\apps\Eiffel60 x86/gcc/windows/mingw/bin/windres"
--preprocessor='"C:\apps\Eiffel60 x86/gcc/windows/mingw/bin/cpp.exe"' -I../../..
../../../sample.rc -O coff -o sample.res

but I'm not sure if it is equivalent to the default behavior of windres.

-- 
           Summary: windres does not escape path with spaces in them
           Product: binutils
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: manus at eiffel dot com
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=4933

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]