File.expand_path works incorrectly with empty strings (regression?)
-------------------------------------------------------------------

                 Key: JRUBY-1624
                 URL: http://jira.codehaus.org/browse/JRUBY-1624
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.x
         Environment: Ubuntu Linux 7.10
Jruby 1.1b1
            Reporter: Vladimir Sizikov
         Attachments: file_expand_path.diff

File.expand_path('') returns empty string in JRuby, but MRI returns the current 
directory.:

MRI:
ruby -e 'p File.expand_path("")' ==> "/opt/work/samples"

JRuby:
jruby -e 'p File.expand_path("")' ==> ""

This causes three Rubinius spec tests for expand_path to fail.

It seems that the problem is caused by fixes for JRUBY-1231 and JRUBY-1372, in 
revision 4359.

The proposed patch fixes the problem and the test failures, and all relevant 
rubinius tests pass (no new failures), not disrupting the changes done in the 
revision, mentioned above.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to