Robert Brown created JRUBY-6653:
-----------------------------------
Summary: require 'tmpdir' fails (Windows Server Enterprise a.k.a.
v6)
Key: JRUBY-6653
URL: https://jira.codehaus.org/browse/JRUBY-6653
Project: JRuby
Issue Type: Bug
Components: Standard Library, Windows
Affects Versions: JRuby 1.6.7
Environment: Windows Server Enterprise
Microsoft Windows [Version 6.0.6002]
Reporter: Robert Brown
Priority: Minor
C:\tb>jirb
irb(main):001:0> require 'tmpdir'
Errno::EIO: Input/output error - C:/Users/me/Local Settings/Application
Data/temp
from org/jruby/RubyFileTest.java:102:in `directory?'
from org/jruby/RubyFileTest.java:87:in `directory?'
from C:/tb/torquebox-2.0.2/jruby/lib/ruby/1.8/tmpdir.rb:33:in `Dir'
from C:/tb/torquebox-2.0.2/jruby/lib/ruby/1.8/tmpdir.rb:9:in `(root)'
<snip>
My hack/potentially dangerous workaround is to edit
jruby/lib/ruby/1.8/tmpdir.rb to not check if file is dir and writable:
32: @@systmpdir = temp # if File.directory?(temp) and File.writable?(temp)
Works fine on XP. It seems that MS have done something weird around temp
folders in this version.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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