]> rtime.felk.cvut.cz Git - notmuch.git/commit
emacs: `with-current-notmuch-show-message' should not leak `coding-system-for-read'
authorDavid Edmondson <dme@dme.org>
Tue, 18 Nov 2014 07:03:17 +0000 (07:03 +0000)
committerDavid Bremner <david@tethera.net>
Wed, 26 Nov 2014 17:26:07 +0000 (18:26 +0100)
commit7585e8c906b51b5a8db89feb8981b8c5fe2e107c
tree4f2dc7b6421fc92c50450498043cbe91bc85278f
parent32855b91d980c6c17ee8c4fe2fb2fa957d11d90f
emacs: `with-current-notmuch-show-message' should not leak `coding-system-for-read'

`with-current-notmuch-show-message' applies a `no-conversion' coding
system when reading a raw message from notmuch. That coding system
should _not_ be applied when the body of the macro is evaluated, as it
can cause file operations used during that evaluation to incorrectly
apply the `no-conversion' coding system.

This was discovered when a user's .signature file contained non-ASCII
characters. When a message is forwarded, the `no-conversion' coding
system was applied to the reading of the .signature file, resulting in
raw rather than UTF-8 interpretation of the data.
emacs/notmuch-show.el