JRuby expand_path under windows appends drive letter to current directory
-------------------------------------------------------------------------
Key: JRUBY-2227
URL: http://jira.codehaus.org/browse/JRUBY-2227
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1RC2
Environment: Windows XP
Reporter: Landon Cox
Assignee: Thomas E Enebo
Some paths that are valid and legitimate pathnames in windows such as "C:" will
not work in JRuby when using File.expand_path.
Pure Ruby behavior in trying to expand "C:"
C:\test>irb
irb(main):001:0> File.expand_path("C:")
=> "C:/test"
irb(main):002:0> quit
Gives the current working directory as the expansion path which is consistent
with the behavior of a windows command prompt, but it is inconsistent with what
Windows Explorer does when typing in "C:" to the address bar.....nonetheless,
JRuby breaks the path entirely using the same example with jirb:
C:\test>\jruby-1.1RC2\bin\jirb
irb(main):001:0> File.expand_path("C:")
=> "C:/test/C:"
irb(main):002:0> quit
Notice that it appended the C: drive letter to the end of the expanded_path
which is the current working directory.
--
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