From: Patrick H. <pa...@13...> - 2007-02-09 13:24:09
|
Doug McCorkle wrote: >>>>>> >=20 > [snip] >=20 >>>>>> It certainly would be nice. I had always assumed that the SCons >>>>>> function >>>>>> PkgConfigBuilder() was injecting them, but I never tried tracking >>>>>> down their >>>>>> exact source. >>>>>> >>>>>> >>>>> >>>>> I will take a look and see if I can create a patch. >>>> >>>> How about this patch? >>> >>> That's very interesting. I can see why re.escape() is being used in >>> that >>> context, but I wonder if it's truly necessary. There is no >>> indication in the >>> revision history or in the code of a specific reason that re.escape >>> () needs >>> to be used. It definitely is not needed for key given the >>> restrictions on >>> what key can be. For Windows, I can see where it would be important t= o >>> ensure that the backslash characters in a path would be handled >>> properly, >>> but that's the only case I can think of. That can be handled more >>> directly >>> using str.replace(). >>> >> Your comment about Windows makes sense. Please let me know if the >> patch or a similar fix is committed. Thanks. >=20 >=20 > Any thoughts on this patch? Speaking only for myself, I'd rather see the escaping minimized on all platforms. I haven't had time to try any Windows-specific handling of the= gmtl.pc generation on Windows, though. Currently, my thinking is that onl= y backslashes and spaces should need to be escaped. BTW, once this gets resolved, I think that GMTL 0.5.1 should be tagged fo= r release. I feel that it's important to get moving with the use of version= ed GMTL installations. -Patrick --=20 Patrick L. Hartling | VP Engineering, Infiscape Corp. PGP: http://tinyurl.com/2oum9 | http://www.infiscape.com/ |