From edfa053fdd7760a4b069764f8de46a857d0cf2d6 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 11 Sep 1997 05:24:25 +0000 Subject: [PATCH] Set no-conversion for network communication with nntpd. (gnus-mule-initialize): For safety, set no-conversion for network communication with nntpd. --- lisp/gnus/gnus-mule.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/gnus-mule.el b/lisp/gnus/gnus-mule.el index 13062278ce8..75e224aace9 100644 --- a/lisp/gnus/gnus-mule.el +++ b/lisp/gnus/gnus-mule.el @@ -206,7 +206,10 @@ coding-system for reading and writing respectively." (add-hook 'message-send-news-hook 'gnus-mule-message-send-news-function) (add-hook 'message-send-mail-hook - 'gnus-mule-message-send-mail-function)) + 'gnus-mule-message-send-mail-function) + (let ((stream (get-process "nntpd"))) + (if (processp stream) + (set-process-coding-system stream 'no-conversion 'no-conversion)))) (gnus-mule-add-group "" 'undecided) (gnus-mule-add-group "fj" 'iso-2022-7bit) @@ -221,4 +224,6 @@ coding-system for reading and writing respectively." (add-hook 'gnus-startup-hook 'gnus-mule-initialize) +(modify-coding-system-alist 'network "nntp" 'no-conversion) + ;; gnus-mule.el ends here -- 2.39.5