NEWS 2.9 KB

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