NAKAMURA, Hiroshi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> Luis Lavena wrote:
>> The only thing that failed is using --source with a file:// URL ...
>> URI cannot parse the drive letter and path correctly, but can live
>> with that ;-)
> 
> Here's a code from soap4r that tries to fetch the resource pointed by a
> given URI object. (variable 'location')
> http://dev.ctor.org/soap4r/browser/trunk/lib/wsdl/xmlSchema/importer.rb#L52
> Ugly workaround but it works for soap4r users.

require 'windows/path'
include Windows::Path

buf = 0.chr * 260
len = [buf.length].pack('L')
PathCreateFromUrl('file://c:/foo/bar', buf, len, nil)
buf.strip

=> "c:\\foo\\bar"

Regards,

Dan
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to