aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2014-04-21 14:37:40 -0400
committerGravatar David Bremner <david@tethera.net>2014-09-21 21:23:45 +0200
commit5673fdbdfaabcd5ae2a13f9337b143ebe50b6a83 (patch)
tree153a6ab7a9c40689462bfaa729125a5ad1167281
parentf4cdabccd0e75d94d7f6f4d50684afc67bbf7f0d (diff)
emacs: Fix coding system in `notmuch-show-view-raw-message'
This fixes the known-broken test of viewing 8bit messages added by the previous commit.
-rw-r--r--emacs/notmuch-show.el5
-rwxr-xr-xtest/T455-emacs-charsets.sh1
2 files changed, 3 insertions, 3 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index aabe56e2..a9974826 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1792,11 +1792,12 @@ to show, nil otherwise."
(notmuch-show-message-adjust))
(defun notmuch-show-view-raw-message ()
- "View the file holding the current message."
+ "View the original source of the current message."
(interactive)
(let* ((id (notmuch-show-get-message-id))
(buf (get-buffer-create (concat "*notmuch-raw-" id "*"))))
- (call-process notmuch-command nil buf nil "show" "--format=raw" id)
+ (let ((coding-system-for-read 'no-conversion))
+ (call-process notmuch-command nil buf nil "show" "--format=raw" id))
(switch-to-buffer buf)
(goto-char (point-min))
(set-buffer-modified-p nil)
diff --git a/test/T455-emacs-charsets.sh b/test/T455-emacs-charsets.sh
index a42a1d20..3078f9c9 100755
--- a/test/T455-emacs-charsets.sh
+++ b/test/T455-emacs-charsets.sh
@@ -128,7 +128,6 @@ EOF
test_expect_equal_file OUTPUT EXPECTED
test_begin_subtest "8bit text message are not decoded when viewing"
-test_subtest_known_broken
test_emacs '(notmuch-show "id:test-plain-8bit@example.com")
(notmuch-show-view-raw-message)
(test-visible-output "OUTPUT.raw")'