From: Ryan Davis Date: 2010-09-16T16:08:26+09:00 Subject: [ruby-core:32418] Re: [Ruby 1.8.7-RubySpec#3837][Open] Pathname#relative_path_from raises exception on Windows if path case different On Sep 15, 2010, at 23:29 , red stun wrote: > RubySpec #3837: Pathname#relative_path_from raises exception on Windows if path case different > http://redmine.ruby-lang.org/issues/show/3837 > > Author: red stun > Status: Open, Priority: Normal > > I'm using ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32], the following code always raises exception > > require 'pathname' > > puts RUBY_VERSION > puts RUBY_PLATFORM > > p = Pathname.new("c:\\") > q = Pathname.new("C:\\") > puts q.relative_path_from(p) > puts p.relative_path_from(q) > > ruby-1.8.7/lib/ruby/1.8/pathname.rb:726:in `relative_path_from': different prefix: "C:\\" and "c:\\" (ArgumentError) I vaguely remember this coming up before. I think it is a dupe.