You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Files written with gzip module write a value of 255 (unknown) at the 10th position in the header which defined what OS was used when gzip file was written.
Files written with gzip linux command correctly set that field to the value of 3 (Unix).
This ehancement does that.
The OS field is used in determining end-of-line convention for text files. But since we do not set the FTEXT flag, all files are binary. RFC 1952
Why do you need to set this field?
wungad commented on Dec 23, 2019
wungadmannequin
MannequinAuthor
More actions
I do not need it for personaly, but since RFC exists and since linux
command line equivalent writes OS information, why should python gzip
implementation not include that.
The same goes for the FCOMMENT field for wich I also have a patch ready and
I they're both nice enhancements.
Activity
wungad commentedon Dec 23, 2019
Files written with gzip module write a value of 255 (unknown) at the 10th position in the header which defined what OS was used when gzip file was written.
Files written with gzip linux command correctly set that field to the value of 3 (Unix).
This ehancement does that.
serhiy-storchaka commentedon Dec 23, 2019
The OS field is used in determining end-of-line convention for text files. But since we do not set the FTEXT flag, all files are binary. RFC 1952
Why do you need to set this field?
wungad commentedon Dec 23, 2019
I do not need it for personaly, but since RFC exists and since linux
command line equivalent writes OS information, why should python gzip
implementation not include that.
The same goes for the FCOMMENT field for wich I also have a patch ready and
I they're both nice enhancements.
On Mon, 23 Dec 2019 at 09:04, Serhiy Storchaka <report@bugs.python.org>
wrote:
StanFromIreland commentedon Jun 23, 2025
@serhiy-storchaka Should this issue be closed too, the PR was closed with:
So I assume so?