From: James Britt Date: 2004-09-10T09:08:34+09:00 Subject: Re: Are there known issues with rubyzip on WIndows? James Britt wrote: > I've been using rubyzip to manipulate OpenOffice.org files,and it works > great for reading and extracting, but I've run into some issues when > trying to create a zip file on Windows. > > It's not that I can't create a zip file; I can, and WinZip happily opens > it. But there something quirky, because OpenOffice won't read it. > > The same ruby code running on Linux, though, works fine, producing a > file that opens fine in OOo on both the Linux box and the windows machine. > > My test scenario for this is: Take a known good sxw file. Extract the > internal files; rezip using rubyzip. Try to open the new doc in OOo. > > When I unzip the new doc,and compare the files with the original source > files, they are identical. I can also use jar to zip up these files, > and OOo is happy with the results. So it does not seem that rubyzip on > windows munges the files themselves, but it might be doing something > with the zip headers or structure that irks OOo. > > So, before I go too crazy trying to narrow this down, I'm wondering if > anyone is aware of any issues or quirks with using rubyzip on Windows. > > rubyzip 0.5.0 http://sourceforge.net/projects/rubyzip > ruby version 1.8.2 One more quirk: Same code, same Ruby, same PC, works fine when run from cygwin terminal rather than Windows CMD box. James