From 2f58690d2489a5bbacef77cf6a9143aae464e54a Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Wed, 29 Sep 2021 12:47:35 +0000 Subject: [PATCH] email: Do not use an empty bytevector to test the charset. Using an empty bytevector no longer throws an exception since Guile commit 5ea8c69e9153a970952bf6f0b32c4fad6a28e839. * email/email.scm (post-process-content-transfer-encoding): Use a bytevector of unit length to test the charset validity. Signed-off-by: Arun Isaac --- email/email.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email/email.scm b/email/email.scm index 3f4e194..fc1564e 100644 --- a/email/email.scm +++ b/email/email.scm @@ -832,7 +832,7 @@ values. The returned headers is a string and body is a bytevector." (define (valid-charset? charset) (catch #t (lambda () - (bytevector->string (make-bytevector 0 0) charset) + (bytevector->string (make-bytevector 1 0) charset) #t) (const #f))) -- 2.33.0