X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.el;h=04c8d63450533dbf566ff25cb6f2276b2032ee5b;hp=bbc03cba957d18fc7e3eb0e71ce93e513f889f54;hb=4e2c351c588ad74f4800ca0344232be90387c54a;hpb=b4892677016c7a994dea75b8ea71bbde92ac17cb 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 ()