[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8c7a555: Remove incorrect use of decode-coding-string
From: |
Stefan Kangas |
Subject: |
master 8c7a555: Remove incorrect use of decode-coding-string |
Date: |
Thu, 22 Oct 2020 14:36:39 -0400 (EDT) |
branch: master
commit 8c7a55531b400dd3d9aa1dacd2bac3ee06b56ff1
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
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 <monnier@iro.umontreal.ca>.
---
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 0fb1955..842ef10 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"))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 8c7a555: Remove incorrect use of decode-coding-string,
Stefan Kangas <=