[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Strange rubyzip behaviour (Errno::EFBIG) - Errno::EINVAL vs Errno::EFBIG
From: "Thomas Sondergaard" <thomas () FirstNameGoesHereSondergaard ! com>
Date: 2004-04-01 18:34:23
Message-ID: c4hn7g$d42$1 () news ! cybercity ! dk
[Download RAW message or body]
> travis@aop:~$ ruby crash.rb
> crash.rb:6:in `read': File too large - foo.txt (Errno::EFBIG)
> from crash.rb:6
> from crash.rb:4:in `open'
> from crash.rb:4
Aah, on my systems (ruby 1.8.1 (2003-12-25) [i686-linux] and ruby 1.8.0
(2003-08-04) [i386-mswin32]) your example raises Errno::EINVAL which rubyzip
expects and handles.
I wonder if it is matz' intention that the ruby interpreter should mend such
inconsistencies between different operating systems. Otherwise I will add
another rescue-clause that handles Errno::EFBIG.
Cheers,
Thomas
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic