civodul

civodul pushed tag v0.2.1 to guile-zlib/guile-zlib

3 weeks ago

civodul pushed to master at guile-zlib/guile-zlib

  • cfaf683579 maint: Bump to 0.2.1. * configure.ac: Bump to 0.2.1.
  • 6c764876a1 Add missing ‘round’ call in ‘uncompress’. * zlib.scm (uncompress): Add ‘round’ call for initial ‘length’ value. * tests/zlib.scm ("uncompress: input size times 1.5 is a fraction"): New test. * NEWS: Update.
  • View comparison for these 2 commits »

3 weeks ago

civodul pushed tag v0.2.0 to guile-zlib/guile-zlib

3 weeks ago

civodul closed issue guile-zlib/guile-zlib#7

New Guile-ZLib release?

3 weeks ago

civodul commented on issue guile-zlib/guile-zlib#7

New Guile-ZLib release?

Hi @a_v_p,

3 weeks ago

civodul pushed to master at guile-zlib/guile-zlib

  • a3a730621d maint: Bump to 0.2.0. * configure.ac: Bump to 0.2.0.
  • 1ae908b46a Update NEWS.
  • 9000573b57 Use ‘catch #t’ instead of ‘dynamic-wind’. * zlib.scm (call-with-zlib-port): New procedure. (call-with-gzip-input-port): Use it instead of ‘dynamic-wind’. (call-with-gzip-output-port, call-with-zlib-input-port) (call-with-zlib-output-port): Likewise.
  • 00d141988e maint: Turn off auto-compilation when invoking ‘guild compile’. This avoids the dreaded warning: ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /gnu/store/…-guile-3.0.9/bin/guild ;;; WARNING: compilation of /gnu/store/…-guile-3.0.9/bin/guild failed: ;;; failed to create path for auto-compiled file "/gnu/store/…-guile-3.0.9/bin/guild" * Makefile.am (.scm.go): Set GUILE_AUTO_COMPILE=0.
  • View comparison for these 4 commits »

3 weeks ago

civodul pushed to master at guile-zlib/guile-zlib

  • c4fdf6f411 Adjust use of ‘set-port-encoding!’ for Guile 2.0 portability. Fixes a regression on Guile 2.0 introduced in commit 5ee750969b90246857c26bb917cfcbae9135f6d4. * zlib.scm (set-port-encoding!*): New procedure. (make-gzip-input-port, make-gzip-output-port) (make-zlib-input-port, make-zlib-output-port): Use it instead of ‘set-port-encoding!’.
  • 43e6bd506e build: Display individual test names on ‘make check’. * Makefile.am (AM_SCM_LOG_DRIVER_FLAGS): Change to ‘--brief=no’.
  • d30913ee63 tests: Skip test that relies on ‘call-with-output-bytevector’ on Guile 2.x. * tests/zlib.scm: Skip test when ‘call-with-output-bytevector’ is missing. Give the test a name.
  • View comparison for these 3 commits »

3 weeks ago

civodul pushed to master at guile-zlib/guile-zlib

  • 6c974ade06 Add exception printer for ‘zlib-error’. * zlib.scm (print-zlib-error): New procedure. <top level>: Add ‘set-exception-printer!’ call. * tests/zlib.scm ("gzip output port, error"): Test it.

3 weeks ago

civodul pushed to master at guile-zlib/guile-zlib

  • 895befa08d Augment ‘zlib-error’ exceptions for gz* procedures. Previously, they would always throw to (zlib-error PROC 0), which is unhelpful. * zlib.scm (gzerror): Add docstring. (Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_ERRNO, Z_STREAM_ERROR, Z_DATA_ERROR) (Z_MEM_ERROR, Z_BUF_ERROR): Export. (raise-gzerror-exception): New procedure. (gzread!, gzwrite, gzbuffer!, gzclose): Use it.

3 weeks ago

civodul pushed to master at guile-lzlib/guile-lzlib

  • d96209c1d3 README: Mention that lzlib must be built as a shared library.

3 months ago

civodul commented on issue guile-zlib/guile-zlib#4

uncompress: The procedure fails when input data compression ratio is big

Applied, thanks @a_v_p!

4 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • 56977e3b5a zlib (uncompress): Bugfix: Don't use "sizeof" to get the size of u64 When "sizeof" is used to get the size of "unsigned-long" type in bytes it leads to different results on 32-bit (i686) and 64-bit (x86-64) platforms (4 and 8 bytes respectively.) As "sizeof" was used in "uncompress" procedure to calculate the size of bytevectors that are passed to "%uncompress2" procedure from zlib this leads to "out-of-range" error on 32-bit platforms when "uncompress" calls "bytevector-u64-set!" procedure due to insufficient bytevector size. Reported by Ludovic Courtès in <https://notabug.org/guile-zlib/guile-zlib/issues/4> * zlib.scm (uncompress): Bugfix: Don't use "sizeof" to get the size of the bytevetors for "unsigned-long" (u64) as it produces different results for 32-bit and 64-bit platforms; use fixed 8 byte size for the bytevectors instead.

4 months ago

civodul pushed tag 0.3.0 to guile-lzlib/guile-lzlib

4 months ago

civodul pushed to master at guile-lzlib/guile-lzlib

  • 474cee4211 Bump to 0.3.0.
  • 16fb1150bf Update NEWS.
  • 74bd35b690 Fix memory leak with lzip ports. The leak would manifest in two cases: (1) when the ports are not explicitly closed, and (2) for an output port, when its ‘close’ method would throw before it had called ‘lz-compress-close’, for instance because the underlying port threw to EPIPE. The first case can be reproduced with: (use-modules (lzlib) (rnrs io ports)) (let loop () (let ((port (make-lzip-output-port (%make-void-port "w")))) (put-bytevector port #vu8(1 2 3 4 5 6 7 8 9 0))) (loop)) The second case can be reproduced with: (let loop () (let ((port (make-lzip-output-port (open-file "/dev/full" "w0")))) (put-bytevector port #vu8(1 2 3 4 5 6 7 8 9 0)) (false-if-exception (close-port port))) (loop)) Fixes <https://issues.guix.gnu.org/69596>. * lzlib.scm (register-allocation): New procedure. (%lz-compress-close, %lz-decompress-close): New variables. (lz-compress-open, lz-decompress-open): Add calls to ‘register-allocation’ and ‘set-pointer-finalizer!’ on success. (lz-compress-close, lz-decompress-close): Remove. (make-lzip-input-port): Remove call to ‘lz-decompress-close’. (make-lzip-output-port): Remove call to ‘lz-compress-close’.
  • 71f40f9c29 Remove generated file. * lzlib/config.scm: Remove.
  • View comparison for these 4 commits »

4 months ago

civodul commented on issue guile-zlib/guile-zlib#4

uncompress: The procedure fails when input data compression ratio is big

Hello @a_v_p,

6 months ago

civodul closed pull request guile-zlib/guile-zlib#3

Inherit encoding on port creation

6 months ago

civodul commented on issue guile-zlib/guile-zlib#3

Inherit encoding on port creation

Pushed as 5ee750969b90246857c26bb917cfcbae9135f6d4, thanks!

6 months ago

civodul pushed to master at guile-zlib/guile-zlib

  • 13c51267d1 maint: Update ‘guix.scm’. * guix.scm: Use ‘local-file’ for source. Remove input labels. Add synopsis, description, and home page.
  • b88f70b423 Update NEWS.
  • 5ee750969b On port creation, inherit the encoding of original ports * zlib.scm (make-gzip-input-port, make-gzip-output-port, make-zlib-output-port, make-zlib-input-port): As stated. * tests/zlib.scm: Test.
  • View comparison for these 3 commits »

6 months ago

civodul closed issue guile-zlib/guile-zlib#4

uncompress: The procedure fails when input data compression ratio is big

7 months ago

civodul commented on issue guile-zlib/guile-zlib#4

uncompress: The procedure fails when input data compression ratio is big

Merged, thanks @a_v_p!

7 months ago