Commit aca5f007 authored by Eli Zaretskii's avatar Eli Zaretskii

Avoid encoding errors in message.el

* lisp/gnus/message.el (message-clone-locals): Don't clone
message-default-charset.  (Bug#25645)
parent 0c36663d
...@@ -8060,8 +8060,13 @@ regexp VARSTR." ...@@ -8060,8 +8060,13 @@ regexp VARSTR."
(or (null varstr) (or (null varstr)
(string-match varstr (symbol-name (car local))))) (string-match varstr (symbol-name (car local)))))
(ignore-errors (ignore-errors
(set (make-local-variable (car local)) ;; Cloning message-default-charset could cause an already
(cdr local))))) ;; encoded text to be encoded again, yielding raw bytes
;; instead of characters in the message.
(unless (string-match "message-default-charset"
(symbol-name (car local)))
(set (make-local-variable (car local))
(cdr local))))))
locals))) locals)))
;;; ;;;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment