aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test-lib.el
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2014-04-21 14:37:39 -0400
committerGravatar David Bremner <david@tethera.net>2014-09-21 21:23:45 +0200
commitf4cdabccd0e75d94d7f6f4d50684afc67bbf7f0d (patch)
tree273bd6ea6d663db63305c4d9aa331ad479973992 /test/test-lib.el
parent0b94dd7fd3dcd071ebbe498cd80f5fd687a78e08 (diff)
test: New tests for Emacs charset handling
The test of viewing 8bit messages is known-broken. The rest pass, but for very fragile reasons. The next several commits will fix the known-broken test and make our charset handling robust.
Diffstat (limited to 'test/test-lib.el')
-rw-r--r--test/test-lib.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test-lib.el b/test/test-lib.el
index bbc03cba..04c8d634 100644
--- a/test/test-lib.el
+++ b/test/test-lib.el
@@ -59,7 +59,9 @@
"Save visible text in current buffer to file FILENAME. Default
FILENAME is OUTPUT."
(notmuch-post-command)
- (let ((text (visible-buffer-string)))
+ (let ((text (visible-buffer-string))
+ ;; Tests expect output in UTF-8 encoding
+ (coding-system-for-write 'utf-8))
(with-temp-file (or filename "OUTPUT") (insert text))))
(defun visible-buffer-string ()