Bug 11240 - Windres breaks down with spaces in rc source
Summary: Windres breaks down with spaces in rc source
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.20
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-01 14:40 UTC by gcchelp.5.adept
Modified: 2010-02-11 12:21 UTC (History)
1 user (show)

See Also:
Host: i686-pc-mingw32
Target: i686-pc-mingw32
Build: i686-pc-mingw32
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gcchelp.5.adept 2010-02-01 14:40:44 UTC
I used the precompiled binutils 2.20 from the mingw32 site, and was said I
should post the bug report here.

Look at his portion of my .rc file:

metal                       png     DISCARDABLE  "../source/metal.png"
"temple of the ancestors"   fxp     DISCARDABLE  "../presets/synthetic
environments/temple of the ancestors.fxp"

when compiled with binutils 2.20, I get

Linker error, could not find resource "metal.pngtempleoftheancesteors"
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

(as a workaround I could put the quoted filename at the top of the list)

Binutils 2.19 is working fine.
Comment 1 Nick Clifton 2010-02-09 10:10:47 UTC
Hi,

> Linker error, could not find resource "metal.pngtempleoftheancesteors"

This is more of a feature than a bug.  What is happening is that windres 
now supports the concatenating of two double-quote enclosed strings into one
string, just as a C compiler does.  So:

     "foo"
     "bar"
 
is treated as if you had typed:

     "foobar"
 
The simple way around this is to use single quotes for the second 
string, as in:

    metal                       png     DISCARDABLE  "../source/metal.png"
    'temple of the ancestors'   fxp     DISCARDABLE 
"../presets/syntheticenvironments/temple of the ancestors.fxp"

I hope that this is OK with you.

Cheers
   Nick

Comment 2 gcchelp.5.adept 2010-02-10 15:46:59 UTC
Hi Nick, sounds logical algthough I didnt expect this behaviour from windres.
Thank you
Comment 3 Nick Clifton 2010-02-11 12:21:38 UTC
A feature, not a bug