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

2007-08-17 Thread manus at eiffel dot com
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.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/4933] windres does not escape path with spaces in them

2007-08-21 Thread manus at eiffel dot com

--- Additional Comments From manus at eiffel dot com  2007-08-21 17:48 
---
Do you have some information on how I can get the CVS binutils and compile it on
Windows?

Thanks,
Manu

-- 


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.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/4933] windres does not escape path with spaces in them

2012-02-16 Thread manus at eiffel dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4933

--- Comment #6 from Emmanuel Stapf  2012-02-16 
23:42:09 UTC ---
I'm still following this bug. So far I've been using the workaround
successfully. I'll try on more time without the `--preprocessor' option and
report back.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/4933] windres does not escape path with spaces in them

2016-03-23 Thread manus at eiffel dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=4933

--- Comment #11 from Emmanuel Stapf  ---
Looking at the patch it seems it would do what it supposed to do. Is there a
way to get a binary version ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils