From: red stun Date: 2010-09-16T15:29:52+09:00 Subject: [ruby-core:32415] [Ruby 1.8.7-RubySpec#3837][Open] Pathname#relative_path_from raises exception on Windows if path case different 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) ---------------------------------------- http://redmine.ruby-lang.org