From: Logan Capaldo Date: 2006-04-18T11:21:36+09:00 Subject: Re: URI#path, windows, and file urls --Apple-Mail-17--484036874 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Apr 17, 2006, at 4:34 PM, Berger, Daniel wrote: > Hi all, > > Ruby 1.8.4 > Windows XP > > Is this correct? > > require 'uri' > URI.parse("file:///C:/foo/bar").path # => "/C:/foo/bar" > > The leading slash seems wrong to me, but then I'm not familiar with > the > RFC's that cover such things. > > Any insight appreciated. > > Thanks, > > Dan I think this is a case of Windows having multiple roots (A: , B: , C:, etc.) and URI obviously can't know a) I'm running on windows so b) C: is a root and not a directory named "C:". And it can't just guess because conceivably C: might be a directory on windows in some cases --Apple-Mail-17--484036874--