This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch][windres] Handle embedded spaces in input filenames
- From: Christopher Faylor <cgf-use-the-mailinglist-please at sourceware dot org>
- To: Danny Smith <dannysmith at clear dot net dot nz>, Binutils <binutils at sourceware dot org>
- Date: Sun, 4 Feb 2007 22:24:53 -0500
- Subject: Re: [Patch][windres] Handle embedded spaces in input filenames
- References: <000001c74832$e3109d30$d64861cb@anykey>
On Sun, Feb 04, 2007 at 09:02:57PM +1300, Danny Smith wrote:
>windres currently is unable to handle path or filenames with embedded
>spaces, even if they are enclosed in quotes, eg
>
>windres --include-dir "/Programe Files/mingw/include" --input "Copy of
>foo.rc"
>
>A mingw.org bug report is at
>https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1640385&gro
>up_id=2435
>
>The problem is that these option args are passed to prepocessor without
>the enclosing quotes. Fixed like so:
I can't check right now but is this because windres is using system to
call the preprocessor rather than calling fork/exec? If so, wouldn't it
be better to just use execvp?
cgf