[Patch][windres] Handle embedded spaces in input filenames

Christopher Faylor cgf-use-the-mailinglist-please@sourceware.org
Mon Feb 5 03:33:00 GMT 2007


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



More information about the Binutils mailing list