[Bf-committers] Scons can't define strings with spaces

Lars Krueger lars_e_krueger at gmx.de
Wed Jan 26 20:34:09 CET 2011


> In scons, string defines cannot contain spaces. The entire value is 
> wrapped in quote marks even if it has already been escape-quoted.
> 
> env['RCFLAGS'].append("-DTEST=\"a space\"")
> env['RCFLAGS'].append("-DTEST=\"nospace\"")
> 
> Gives:
> 
> windres "-DTEST="a space"" -DTEST="nospace"
> 
> And the first is, of course, an invalid arg.


Apostrophes are valid string delimiter also: Have you tried

env['RCFLAGS'].append("-DTEST='a space'")


-- 
Dr. Lars Krueger


Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail


More information about the Bf-committers mailing list