Project

General

Profile

Actions

Bug #1266

closed

relative_path broken on windows

Added by cfis (Charlie Savage) about 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2009-03-06) [i386-mswin32_90]
Backport:
[ruby-core:22829]

Description

=begin
pwd = Pathname.new("C:/Development/src/ruby_trunk/test/minitest")
basedir = Pathname.new("c:/Development/ruby-1.9.1/usr/lib/ruby/1.9.1/mini")
basedir.relative_path_from(pwd)

ArgumentError: different prefix: "c:/" and "C:/Development/src/ruby_trunk/test/minitest"
from c:/Development/ruby/lib/ruby/1.8/pathname.rb:709:in `relative_path_from'

This breaks running the ruby tests on windows.
=end


Files

pathname.patch (977 Bytes) pathname.patch cfis (Charlie Savage), 03/28/2009 05:38 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0