[rb-general] BUILD_PATH_PREFIX_MAP format spec, draft #1

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Jan 24 15:57:21 CET 2017


On Tue 2017-01-24 07:08:52 -0500, Holger Levsen wrote:
> On Mon, Jan 23, 2017 at 10:14:00PM +0000, Ximin Luo wrote:
>> To avoid this I'll drop the hex-encoding, and instead do a simpler mapping:
>> 
>> '%' -> '%%'
>> '=' -> '%+'
>> ':' -> '%;'
>  
> this seems nice, as in, not overly complicated!
>
> I'm curious what others think!

I also like it, and i appreciate the effort that's gone into mapping out
the range of possible implementations and working out what people's
needs are.

As someone who has said "i would prefer the simplicity of expect paths
to not have any ':' in them", this can actually meet my expectations --
as long as my paths don't have ':' or '%' or '=' then i can happily
avoid doing any sort of escaping, which is not much worse than the i'd
proposed.  At the same time, this proposal covers the requirements from
other build systems who really prefer to avoid ruling out any characters
from the path names, and it does so in a way that doesn't seem
particularly complicated to implement.

thumbs up from me!

       --dkg


More information about the rb-general mailing list