| 1 |
-*- org -*- |
| 2 |
#+TITLE: Guile-zlib NEWS – history of user-visible changes |
| 3 |
#+STARTUP: content hidestars |
| 4 |
|
| 5 |
Copyright © 2021, 2024-2025 Ludovic Courtès <[email protected]> |
| 6 |
|
| 7 |
Copying and distribution of this file, with or without modification, |
| 8 |
are permitted in any medium without royalty provided the copyright |
| 9 |
notice and this notice are preserved. |
| 10 |
|
| 11 |
Please report bugs at <https://notabug.org/guile-zlib/guile-zlib>. |
| 12 |
|
| 13 |
* Changes in 0.2.2 (compared to 0.2.1) |
| 14 |
|
| 15 |
** Fix ‘uncompress’ procedure on 32-bit systems |
| 16 |
|
| 17 |
The ‘uncompress’ procedure would reportedly cause crashes on 32-bit |
| 18 |
PowerPC systems and could lead to buffer overflows on other 32-bit |
| 19 |
systems. |
| 20 |
|
| 21 |
** Adjust test for zlib-ng |
| 22 |
|
| 23 |
The “gzip output port, error” test would fail when using zlib-ng instead |
| 24 |
of zlib. This is now fixed. |
| 25 |
|
| 26 |
* Changes in 0.2.1 (compared to 0.2.0) |
| 27 |
|
| 28 |
** Fix wrong-type-argument error that could occur in ‘uncompress’ |
| 29 |
|
| 30 |
‘uncompress’ could throw to ‘wrong-type-arg’, “expecting exact integer”, |
| 31 |
depending on the size of its input bytevector. |
| 32 |
|
| 33 |
* Changes in 0.2.0 (compared to 0.1.0) |
| 34 |
|
| 35 |
** Improve heuristics of bytevector size calculation in ‘uncompress’ |
| 36 |
|
| 37 |
‘uncompress’ now makes a better job at guessing the size of the |
| 38 |
output bytevector. |
| 39 |
|
| 40 |
** ‘make-zlib-input-port’ & co. inherit the input port’s encoding |
| 41 |
|
| 42 |
‘make-gzip-input-port’, ‘make-gzip-output-port’, |
| 43 |
‘make-zlib-output-port’, and ‘make-zlib-input-port’ now inherit the |
| 44 |
encoding of their input port. |
| 45 |
|
| 46 |
** ‘zlib-error’ exceptions from gz* procedures now include accurate info |
| 47 |
|
| 48 |
‘zlib-error’ exceptions thrown by the gz* family of procedures now |
| 49 |
include a correct error code and optionally an error message. |
| 50 |
Exceptions now have one of the following forms: |
| 51 |
|
| 52 |
(zlib-error PROC) |
| 53 |
(zlib-error PROC CODE) |
| 54 |
(zlib-error PROC CODE MESSAGE) |
| 55 |
|
| 56 |
** ‘call-with-*’ procedures no longer use ‘dynamic-wind’ |
| 57 |
|
| 58 |
Previously ‘call-with-zlib-input-port’ and other similar procedures |
| 59 |
would use ‘dynamic-wind’ to close the zlib/gzip port both for local |
| 60 |
and non-local exits from the given procedure. Since this does not |
| 61 |
play well with delimited continuations, notably used in Fibers, this |
| 62 |
use of ‘dynamic-wind’ has been replaced by a ‘catch #t’ form. |
| 63 |
|
| 64 |
* Changes in 0.1.0 (compared to 0.0.1) |
| 65 |
|
| 66 |
** New procedures: ‘make-zlib-input-port’, ‘make-zlib-output-port’ |
| 67 |
|
| 68 |
These procedures and the companion ‘call-with-zlib-*’ procedures |
| 69 |
provide an alternative to the ‘make-gzip-*’ and ‘call-with-gzip-*’ |
| 70 |
procedures; unlike those, they operate on all types of ports, not |
| 71 |
just file ports. |
| 72 |
|
| 73 |
These procedures also support multiple formats: raw “deflate”, |
| 74 |
“zlib”, and “gzip”. |
| 75 |
|
| 76 |
** New ‘compress’ and ‘uncompress’ procedures |
| 77 |
|
| 78 |
These procedures support compression/decompression of individual |
| 79 |
bytevectors. |