diff lisp/gnus/message.el @ 93394:789028492ded

(message-make-in-reply-to): Use mm-with-multibyte-buffer.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 29 Mar 2008 22:22:07 +0000
parents a789a1138b08
children 06240ef0da8e
line wrap: on
line diff
--- 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 \""