[PATCH] windres: add quotes around preprocessor cmd if needed
Clément Chigot
chigot@adacore.com
Tue Jun 28 12:26:59 GMT 2022
On Tue, Jun 28, 2022 at 11:37 AM Clément Chigot <chigot@adacore.com> wrote:
>
> On Tue, Jun 28, 2022 at 11:00 AM Jan Beulich <jbeulich@suse.com> wrote:
> >
> > On 28.06.2022 09:35, Clément Chigot via Binutils wrote:
> > Shouldn't you also (optionally) quote the pre-processor string
> > if that came into read_rc_file() as non-NULL? Everything else looks
> > okay to me.
>
> Yeah. I didn't run into this issue but looking at the code it should happen
> too. Thanks for pointing it out !
Actually the space issue is already handled by windres.c:
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=binutils/windres.c;h=4df821ee8451bda70490d6626707c2bdd66eeb5f;hb=HEAD#l887
It's not as complete as it should be. But apart of "%" I'm not sure
any other characters caught by "filename_need_quotes" can happen
in a folder name under Windows.
Making "filename_need_quotes" more global might be a good idea
anyway.
Clément
More information about the Binutils
mailing list