File#expand_path is incorrect on Windows
----------------------------------------
Key: JRUBY-2161
URL: http://jira.codehaus.org/browse/JRUBY-2161
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1RC2
Environment: Latest JRuby 1.1RC2, Windows
Reporter: Vladimir Sizikov
Assignee: Vladimir Sizikov
Fix For: JRuby 1.1
This is a windows-specific bug.
{noformat}
p File.expand_path("C:/dir/../")
p File.expand_path("C:/dir/two/../../")
p File.expand_path("C:/dir/two/../../../../../")
{noformat}
JRuby prints:
"C:"
"C:"
"/"
MRI prints:
"C:/"
"C:/"
"C:/"
--
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