# HG changeset patch # User Stefan Monnier # Date 1206829327 0 # Node ID 789028492ded07daece020b5c72ff429bab95b70 # Parent 902b4a2f54217c01193b7a43bc8b11513f09ed41 (message-make-in-reply-to): Use mm-with-multibyte-buffer. diff -r 902b4a2f5421 -r 789028492ded lisp/gnus/ChangeLog --- a/lisp/gnus/ChangeLog Sat Mar 29 22:20:13 2008 +0000 +++ b/lisp/gnus/ChangeLog Sat Mar 29 22:22:07 2008 +0000 @@ -1,11 +1,15 @@ +2008-03-29 Stefan Monnier + + * message.el (message-make-in-reply-to): Use mm-with-multibyte-buffer. + 2008-03-28 Michael Harnois (tiny change) * nnimap.el (nnimap-find-minmax-uid): Fix Exchange 2007 IMAP problem. 2008-03-24 Reiner Steib - * message.el (message-signature-separator): Change default. Improve - custom type. + * message.el (message-signature-separator): Change default. + Improve custom type. (message-cite-function): Change default to message-cite-original-without-signature. @@ -18,9 +22,9 @@ (message-shorten-references): Be more strict when building list of valid references to comply with GNKSA. - * gnus-group.el (gnus-read-ephemeral-bug-group) - (gnus-read-ephemeral-debian-bug-group) - (gnus-read-ephemeral-emacs-bug-group): Use the correct variable. + * gnus-group.el (gnus-read-ephemeral-bug-group) + (gnus-read-ephemeral-debian-bug-group) + (gnus-read-ephemeral-emacs-bug-group): Use the correct variable. * message.el (message-info): Don't use booleanp which isn't supported in Emacs 21 and XEmacs. diff -r 902b4a2f5421 -r 789028492ded lisp/gnus/message.el --- a/lisp/gnus/message.el Sat Mar 29 22:20:13 2008 +0000 +++ b/lisp/gnus/message.el Sat Mar 29 22:22:07 2008 +0000 @@ -5345,19 +5345,18 @@ ;; Quote a string containing non-ASCII characters. ;; It will make the RFC2047 encoder cause an error ;; if there are special characters. - (let ((default-enable-multibyte-characters t)) - (with-temp-buffer - (insert (car name)) - (goto-char (point-min)) - (while (search-forward "\"" nil t) - (when (prog2 - (backward-char) - (zerop (% (skip-chars-backward "\\\\") 2)) - (goto-char (match-beginning 0))) - (insert "\\")) - (forward-char)) - ;; Those quotes will be removed by the RFC2047 encoder. - (concat "\"" (buffer-string) "\""))) + (mm-with-multibyte-buffer + (insert (car name)) + (goto-char (point-min)) + (while (search-forward "\"" nil t) + (when (prog2 + (backward-char) + (zerop (% (skip-chars-backward "\\\\") 2)) + (goto-char (match-beginning 0))) + (insert "\\")) + (forward-char)) + ;; Those quotes will be removed by the RFC2047 encoder. + (concat "\"" (buffer-string) "\"")) (car name)) (nth 1 name)) "'s message of \""