[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18132] Another question about IO#ungetc

From: Federico Builes <federico.builes@...>
Date: 2008-08-05 14:01:20 UTC
List: ruby-core #18132
Hello,

While studying the specs for IO#ungetc (http://redmine.ruby-lang.org/issues/show/400 
) we came across the following
test case:

According to the docs IO#ungetc "has no effect with unbuffered reads  
(such as
IO#sysread)" but

irb(main):001:0> file = File.open(".bashrc", "r")
=> #<File:.bashrc>
irb(main):002:0> length = File.size(".bashrc")
=> 1181
irb(main):003:0> content = file.sysread(length)
=> "export PS1=..."
irb(main):004:0> file.rewind
=> 0
irb(main):005:0> file.ungetc(100)
=> nil
irb(main):006:0> file.sysread(length)
IOError: sysread for buffered IO
	from (irb):6:in `sysread'
	from (irb):6
	from :0

$ uname -a
Darwin korobushka 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun  9  
19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386

$ ruby -v
ruby 1.8.6 (2008-07-17 patchlevel 279) [i686-darwin9.4.0]

This happens in 1.8.6, 1.8.7 and 1.9. Was this changed without an  
update to
the docs or are we missing something in the test case?

Thanks.

--
Federico




In This Thread

Prev Next