[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [RFC] Canonical Paths

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-08-29 22:41:04 CEST

Marcus Comstedt wrote:

>=?UTF-8?B?QnJhbmtvIMSMaWJlag==?= <brane@xbc.nu> writes:
>
>
>
>>Now, if you want to do tricks like that: there are two single bytes
>>that are invalid in UTF-8: these are 0xfe (11111110) and 0xff
>>(11111111), and they also happen to cooperate quite happily with the C
>>string functions. We could use one of those as the canonical path
>>separator.
>>
>>
>
>
>Hm, now that I read your message a second time I see that you propose
>to change the _canonical path separator_ to 0xfe. Why would you want
>to do that? Leaving the canonical path separator as '/' (as in my
>proposal) avoids changing any code that deals with path separator at
>all.
>
>

Any code that deals with the path separator and doesn't use
SVN_PATH_SEPARATOR is broken anyway. And all that code is in exactly one
file, libsvn_subr/path.c.

And anyway, I didn't say I want to do that, just that I think it's
better than your plan to encode "dangerous" chars with invalid UTF-8
sequences.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 29 22:41:49 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.