[ruby-cvs:54739] nobu:r47591 (trunk): pathname.rb: fix a Pathname#relative_path_from crash on

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Sep 15 10:29:22 JST 2014


nobu	2014-09-15 10:29:21 +0900 (Mon, 15 Sep 2014)

  New Revision: 47591

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47591

  Log:
    pathname.rb: fix a Pathname#relative_path_from crash on
    
    * ext/pathname/lib/pathname.rb (SAME_PATHS):
      Pathname#relative_path_from uses String#casecmp to compare strings
      on case-insensitive filesystem platforms (e.g., Windows). This can
      return nil for strings with different encodings, and the code
      previously assumed that it always returned a Fixnum.  [Fix GH-713]

  Modified files:
    trunk/ChangeLog
    trunk/ext/pathname/lib/pathname.rb
    trunk/test/pathname/test_pathname.rb


More information about the ruby-cvs mailing list