Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

fixing p7zip 4.65 to make .ZIP use DOS, not Unix, as host OS (Announce)

posted by DOS386, 27.07.2010, 03:49

> The "extraction" problem only appears on PKWare's DOS versions of Pkunzip
> (2.04g and 2.50), and Win32 PKzipw 2.50. They both crap out on reading the
> 0x03 "UNIX" identifier in the header, and refuse to extract, saying "You
> need PKUNZIP Version 8.8 to extract". All other UNZIP utilities ignore the
> UNIX flag, and extract correctly.

The truth is out.


// inside \p7zip_4.65\CPP\7zip\Archive\Zip\ZipUpdate.cpp
// line 33
#if defined(_WIN32) || defined(DJGPP) // was only #ifdef _WIN32
NFileHeader::NHostOS::kFAT;
#else
NFileHeader::NHostOS::kUnix;
#endif


the fix:


// inside \p7zip_4.65\CPP\7zip\Archive\Zip\ZipUpdate.cpp
// line 33
NFileHeader::NHostOS::kFAT;
// Do NOT set "kLoonix" as it causes nothing but trouble !!! PKUNZIP for DOS and
// Win32 refuse extract !!! 7-ZIP should be functionally equivalent on all host platforms !!!

---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 386 users online (0 registered, 386 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum