ZipArchive help

11 views
Skip to first unread message

ilango rajagopal

unread,
Apr 8, 2014, 3:33:30 AM4/8/14
to sbas...@gmail.com, alche...@googlegroups.com
I'm developing an app to view and extract zip files. I used the
ZipArchive header from zip library. When I called ZipArchive.entries()
function, it does not return any [ZipEntry] array. It just starts to
take input from standard input stream i.e from the terminal
continuously. My Code is:

var f=fopen_r(filename)
var arch:ZipArchive=new ZipArchive(f)
var ent=arch.entries() // At this place, the terminal starts reading
input from terminal continuously.

To check the code, I've used following code:

var f=fopen_r(filename)
println("Working correct 1")
var arch:ZipArchive=new ZipArchive(f)
println("Working correct 2")
var ent=arch.entries()
println("Working correct 3")

When the above code is executed, it prints Working correct 1 and
Working correct 2. Then it starts reading continuously from terminal.
Is this a bug in zip library...? I've mailed this to you because I
cannot create a new topic in Google groups since I'm browsing in a
mobile.

Jack_5

unread,
Apr 9, 2014, 3:54:26 AM4/9/14
to alche...@googlegroups.com
I'm also facing the same problem...

Sergey Basalaev

unread,
Apr 9, 2014, 4:33:40 AM4/9/14
to alche...@googlegroups.com
Indeed, ZipArchive tried to read from stdin, not from file.
Also, ZipArchive header missed the most crucial function,
to open zip entry for reading. Everything is fixed in
libzip 0.97. Please, install the latest updates.

Sergey
Reply all
Reply to author
Forward
0 new messages