(2010/04/28 17:02), brian ford wrote:
> On Tue, Apr 27, 2010 at 2:48 PM, Ryan Davis<ryand-ruby / zenspider.com>  wrote:
>>
>> On Apr 26, 2010, at 21:22 , Brian Ford wrote:
>>
>>> Issue #3185 has been updated by Brian Ford.
>>>
>>>
>>> Could we please get clarification on when it is required and on what platforms? Just allowing an unlimited number of forward slashes seems unreasonable.
>>
>> Seems reasonable to me and allows for things like this to be clean and easy:
>>
>>>> URI.parse "file:" + File.expand_path('//path/to/../file.txt')
>> =>  #<URI::Generic:0x100620d08 URL:file://path/file.txt>
>
> That's two, not an arbitrary number.
>
> URI.parse "file:/" + File.expand_path('/path/to/../file.txt') is no less simple.

This must be:
* file:///path/to/../file.txt
* file://localhost/C:/foo/bar/baz.txt

    URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
    hier-part     = "//" authority path-abempty
                  / path-absolute
                  / path-rootless
                  / path-empty

http://tools.ietf.org/html/rfc3986

So the problem is, what is the argument of File.expand_path.

http://en.wikipedia.org/wiki/Path_(computing)#Posix_pathname_definition

-- 
NARUSE, Yui  <naruse / airemix.jp>