From: Scott Bronson Date: 2010-09-11T05:14:17+09:00 Subject: Re: Rubyzip - `dup': can't dup NilClass (TypeError) Thomas Sondergaard wrote: > The encoding of the external file attributes appears to be illegal. To > verify this with another tool try running "zipinfo -v" on the zip-file > and notice that it prints a '?' as the file type in the external file > attributes. Very strange. My zipinfo -v doesn't show anything amiss. I'm using: ZipInfo 3.00 of 20 April 2009, by Greg Roelofs and the Info-ZIP group. > The problem should also be reported to the author of the tool generating > the zip archives. Whatever tool is generating them, it's already in widespread use. :( For instance, most zipfiles in the following packages are valid, but rubyzip can't handle them. http://www.vim.org/scripts/script.php?script_id=3114 http://www.vim.org/scripts/script.php?script_id=3123 http://www.vim.org/scripts/script.php?script_id=3148 http://www.vim.org/scripts/script.php?script_id=3150 http://www.vim.org/scripts/script.php?script_id=3169 Thanks Thomas. For now I've worked around it by shelling out to the unzip command. If I have time I'll try your patch next week. - Scott -- Posted via http://www.ruby-forum.com/.