I'm trying to use the spreadsheet/excel module by Daniel Berger, but 
it's failing its tests on the olewriter.  Any thoughts?

# ruby test/ts_all.rb
Loaded suite test/ts_all
Started
...................E/tmp/spreadsheet-0.3.4/lib/spreadsheet/olewriter.rb:22: 
[BUG] rb_sys_fail() - errno == 0
ruby 1.8.1 (2003-12-25) [sparc-solaris2.8]




Here's the code around line 22 of olewriter.rb

     8  class OLEWriter < IO
     9
    10     # Not meant for public consumption
    11     MaxSize    = 7087104
    12     BlockSize  = 4096
    13     BlockDiv   = 512
    14     ListBlocks = 127
    15
    16     attr_reader :biff_size, :book_size, :big_blocks, :list_blocks
    17     attr_reader :root_start, :size_allowed
    18
    19     # Accept an IO object, a fileno, or a String
    20     def initialize(arg, &block)
    21        if arg.kind_of?(String)
    22           super(File.open(arg, "w+").fileno, "w+", &block)
    23        elsif arg.respond_to?(:fileno)
    24           super(arg.fileno, "w+", &block)
    25        else
    26           super(arg, "w+", &block)
    27        end
    28        binmode

-- 
Posted via http://www.ruby-forum.com/.