Filesystem paths

Alexander Belchenko bialix at ukr.net
Fri Apr 28 07:59:03 BST 2006


Jan Hudec пишет:
> On Fri, Apr 28, 2006 at 16:35:26 +1000, Martin Pool wrote:
> 
>>On 28/04/2006, at 3:26 PM, Jan Hudec wrote:
>>
>>
>>>On Thu, Apr 27, 2006 at 15:26:51 -0500, John Arbash Meinel wrote:
>>>
>>>>Jan Hudec wrote:
>>>>
>>>>>On Thu, Apr 27, 2006 at 15:11:27 -0500, Matthew D. Fuller wrote:
>>>>>
>>>>>>On Thu, Apr 27, 2006 at 02:02:58PM -0500 I heard the voice of
>>>>>>John Arbash Meinel, and lo! it spake thus:
>>>>>>
>>>>>>>I think the reason for escaping the : is that it could be
>>>>>>>interpreted as a URL scheme.
>>>>>>
>>>>>>I'd think it's more likely that it would be [attempted to be]
>>>>>>interpreted as a port.
>>>>>
>>>>>Yes, I now vaguely recall already hearing that. Though of course  
>>>>>since the
>>>>>'c:' is in the first path component and not the host component  
>>>>>(which is
>>>>>empty -- there are *3* /es at the begining), it actually can't be.
>>>>>
>>>>
>>>>I think we should support them. As in if we see a :, we don't  
>>>>complain.
>>>>But internally we should try and be consistent, and | seems to be  
>>>>fairly
>>>>common. (At least it is what urllib uses, which is good enough for  
>>>>me).
>>>
>>>Windows themselves (MSIE) don't and Mozilla doesn't either, though  
>>>they
>>>both understand that notation.
>>
>>Do you mean they don't translate : to |?
> 
> 
> Yes. Well, MSIE translates file: URLs to paths and understands both, so
> one can't really tell which it prefers. And mozilla does not seem to
> translate either to anything, so after all they seem both equally valid.

Confirm.

--
Alexander





More information about the bazaar mailing list