[delphizip] Remarks concerning code pages and OS-Versions in the dlls

  • From: "Roger Aelbrecht" <roger.aelbrecht@xxxxxxxxxx>
  • To: "delphizip @freelists.org" <delphizip@xxxxxxxxxxxxx>
  • Date: Tue, 26 Mar 2002 17:00:06 +0100

Hi all,

During debugging and tests on the OEM2Char issues,
I noticed some other things that does not produce
any problems but are not entirely correct.

In de Zipdll

file Tailor.c there is following statements

/* The following OS code is defined in pkzip appnote.txt */
#define OS_CODE  0xB00
#define NUM_HOSTS 16
/* Number of operating systems. Should be updated when new ports are made */

when looking at the latest version(4.5) of appnot.txt from pkzip then
code 0xB00 or 11 is for MVS systems

Windows NTFS should use value 10 = 0xA00


In unzipdll

in file UnzProv.h we have a list of defines
file://----------------------------------------------------------
/* version_made_by codes (central dir):  make sure these */
/*  are not defined on their respective systems!! */
file://----------------------------------------------------------

<partial quote>

#define TOPS20_           10
#define FS_NTFS_          11   /* filesystem used by Windows NT
*/
#define QDOS_MAYBE_       12   /* a bit premature, but somebody once started
*/
#define ACORN_            13   /* Archimedes Acorn RISC OS
*/
#define FS_VFAT_          14   /* filesystem used by Windows 95, NT
*/

</partial quote>

Again some of these values no longer correspond to the values given in
the appnote.txt
<quote>

  0 - MS-DOS and OS/2 (FAT / VFAT / FAT32 file systems)
          1 - Amiga                     2 - OpenVMS
          3 - Unix                      4 - VM/CMS
          5 - Atari ST                  6 - OS/2 H.P.F.S.
          7 - Macintosh                 8 - Z-System
          9 - CP/M                     10 - Windows NTFS
         11 - MVS                      12 - VSE
         13 - Acorn Risc               14 - VFAT
         15 - alternate MVS            16 - BeOS
         17 - Tandem
         18 thru 255 - unused
</quote>

I think we should update the dll files to this latest appnote

Regards

--
Roger Aelbrecht
http://web.wanadoo.be/driehoeksw


Other related posts:

  • » [delphizip] Remarks concerning code pages and OS-Versions in the dlls