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

Tom Edwards contact at steamreview.org
Wed Jan 26 21:03:22 CET 2011


I didn't know that...but alas it doesn't help.

On 26/01/2011 7:34, Lars Krueger wrote:
>> 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'")
>
>


More information about the Bf-committers mailing list