This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ddorda, ned.deily, r.david.murray, serhiy.storchaka
Date 2016-07-17.05:32:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468733574.96.0.841776604311.issue27525@psf.upfronthosting.co.za>
In-reply-to
Content
This byte identifies the type of file system. How can you determine it? Note that different filesystems can be used on the same OS. FAT still widely used on Windows (and what about exFAT, should it be considered as a flavour of FAT or separate type?), virtually any file system can be mounted on Linux.

See 2.3.1.2 in RFC 1952:

         A compliant compressor must produce files with correct ID1,
         ID2, CM, CRC32, and ISIZE, but may set all the other fields in
         the fixed-length part of the header to default values (255 for
         OS, 0 for all others).

         [...] a decompressor may ignore FTEXT and OS
         and always produce binary output, and still be compliant.

Since the gzip module never sets the FTEXT flag, the value of the OS field is useless.
History
Date User Action Args
2016-07-17 05:32:54serhiy.storchakasetrecipients: + serhiy.storchaka, ned.deily, r.david.murray, ddorda
2016-07-17 05:32:54serhiy.storchakasetmessageid: <1468733574.96.0.841776604311.issue27525@psf.upfronthosting.co.za>
2016-07-17 05:32:54serhiy.storchakalinkissue27525 messages
2016-07-17 05:32:54serhiy.storchakacreate