# How standard libraries read GZ files

2 GZ files from loremfile.dev, given to 5 standard-library readers in 19 runtime versions: which read them, which refuse, which differ.

The page: <https://loremfile.dev/compat/gz>.

2 GZ files given to 5 readers in 19 runtime versions. Cells of the ordinary files: reads 35, differs 3, refuses 0, crashes 0.

| File | Manifest says | go/compress/gzip | java/java.util.zip.GZIPInputStream | node/zlib | python/gzip | ruby/Zlib::GzipReader |
|---|---|---|---|---|---|---|
| [`gz/lorem-1mb.txt.gz`](https://loremfile.dev/gz/lorem-1mb.txt.gz) (252.3 KB (252,288 bytes)) | members 1, uncompressed_bytes 1000000 | **reads** reports uncompressed_bytes 1000000 | **reads** reports uncompressed_bytes 1000000 | **reads** reports uncompressed_bytes 1000000 | **reads** reports uncompressed_bytes 1000000 | **reads** reports uncompressed_bytes 1000000 |
| [`gz/multi-member-3.gz`](https://loremfile.dev/gz/multi-member-3.gz) (839 B) | members 3, uncompressed_bytes 1440 | **reads** reports uncompressed_bytes 1440 | **reads** reports uncompressed_bytes 1440 | **reads** reports uncompressed_bytes 1440 | **reads** reports uncompressed_bytes 1440 | **differs** reports uncompressed_bytes 605 where the manifest has 1440 |

The results as JSON: <https://github.com/kumarprabhashanand/loremfile/blob/main/compat/results/gz.json>.
