From 8c7a55531b400dd3d9aa1dacd2bac3ee06b56ff1 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 22 Oct 2020 20:32:32 +0200 Subject: [PATCH] Remove incorrect use of decode-coding-string * test/lisp/emacs-lisp/bindat-tests.el (bindat-test-pack/multibyte-string-fails) (bindat-test-unpack/multibyte-string-fails): Don't use decode-coding-string. Problem pointed out by Stefan Monnier . --- test/lisp/emacs-lisp/bindat-tests.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lisp/emacs-lisp/bindat-tests.el b/test/lisp/emacs-lisp/bindat-tests.el index 0fb1955695d..842ef10bc57 100644 --- a/test/lisp/emacs-lisp/bindat-tests.el +++ b/test/lisp/emacs-lisp/bindat-tests.el @@ -97,10 +97,10 @@ [192 168 1 100])))))) (ert-deftest bindat-test-pack/multibyte-string-fails () - (should-error (bindat-pack nil nil (decode-coding-string "ö" 'utf-8)))) + (should-error (bindat-pack nil nil "ö"))) (ert-deftest bindat-test-unpack/multibyte-string-fails () - (should-error (bindat-unpack nil (decode-coding-string "ö" 'utf-8)))) + (should-error (bindat-unpack nil "ö"))) (ert-deftest bindat-test-format-vector () (should (equal (bindat-format-vector [1 2 3] "%d" "x" 2) "1x2")) -- 2.39.2