3 ms·
Author here. That's actually a bug in the `zip` command. InfoZIP inserts \r\n into zip comments every 256 bytes and I have no idea why, since APPNOTE.TXT doesn'
by jart 6y ago
Author here. That's actually a bug in the `zip` command. InfoZIP inserts \r\n into zip comments every 256 bytes and I have no idea why, since APPNOTE.TXT doesn't specify that. I intend to find a workaround soon. If you're curious about the Makefile code used to generate the demo zip, see here: https://github.com/jart/cosmopolitan/blob/c029e83dd893b733c13b1859c9103f279a14aa37/tool/net/net.mk#L116 https://github.com/jart/cosmopolitan/blob/c029e83dd893b733c1...
- bch 6y agozip.c L70: #define MAXCOM 256/* Maximum one-line comment size */ So looks like an “annoyance” more than “bug” per se. Excellent project, yours, btw.
- 1vuio0pswjnm7 6y agoDoes minizip, which in included in zlib, have the same bug. https://github.com/madler/zlib/tree/master/contrib/minizip https://github.com/madler/zlib/tree/master/contrib/minizip
- dmbaggett 6y agoAlso, typo: {"jar", "appliaction/java-archive"}, //
- jart 6y agoThanks! https://github.com/jart/cosmopolitan/commit/cef08d47b652bd980df0880f5802455fb31414bd https://github.com/jart/cosmopolitan/commit/cef08d47b652bd98...