Bugs item #28900, was opened at 2011-02-01 19:16
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28900&group_id=126
Category: None
Group: v1.5.x
Status: Open
Resolution: Accepted
Priority: 3
Submitted By: S Shaw (skye)
Assigned to: Eric Hodel (drbrain)
Summary: Cygwin: Gem::SilentUI tries to open Windows' NUL file
Initial Comment:
>From user_interaction.rb:
class Gem::SilentUI < Gem::StreamUI
def initialize
reader, writer = nil, nil
if Gem.win_platform?
reader = File.open('nul', 'r')
writer = File.open('nul', 'w')
else
reader = File.open('/dev/null', 'r')
writer = File.open('/dev/null', 'w')
end
super reader, writer, writer
end
end
When running on cygwin Gem::SilentUI will be in a POSIX environment where the
NUL file is /dev/null.
Skye@Skye-PC ~
$ ruby -ve'File.open("nul","r")'
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
-e:1:in `initialize': No such file or directory - nul (Errno::ENOENT)
from -e:1:in `open'
from -e:1
Skye@Skye-PC ~
$ /cygdrive/c/Ruby187/bin/ruby -ve'File.open("nul","r")'
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
RubyGems version is 1.5
----------------------------------------------------------------------
Comment By: Tim Anderegg (tanderegg)
Date: 2011-02-03 16:45
Message:
Hello, I had this same problem, although the code listed below by Eric does
indeed fix the problem, this fix has not yet been committed.
----------------------------------------------------------------------
Comment By: Eric Hodel (drbrain)
Date: 2011-02-01 19:53
Message:
Can you verify this is fixed in rubygems trunk?
https://github.com/rubygems/rubygems/commit/d434c98
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28900&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers