search for: unz_open

Displaying 1 result from an estimated 1 matches for "unz_open".

Did you mean: nc_open
2010 Sep 20
0
unz() ignores encoding argument
...this is expected behaviour, except for the remark that "unz reads (only) single files within zip files, in binary mode" (and a short comment further below that re-encoding only works for text connections). Digging a bit in the source code, the ultimate cause seems to be this line in the unz_open() C-level function, on line 359 of src/main/dounzip.c: > /* set_iconv(); not yet */ Any ideas why this is commented out? The previous lines set up con->text appropriately and con->encname was set by do_unz(), so I don't see an obvious reason why the iconv layer can't be adde...