aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShengHuo ZHU2002-01-03 14:51:05 +0000
committerShengHuo ZHU2002-01-03 14:51:05 +0000
commit1f7d2e140f4293a933fd96355aa17c08581fc4de (patch)
tree8fffb2381a607353ee2f4ee1c7adf10e923ff839
parent7d1c48661da68f4d776555e4281b61416bb17097 (diff)
downloademacs-1f7d2e140f4293a933fd96355aa17c08581fc4de.tar.gz
emacs-1f7d2e140f4293a933fd96355aa17c08581fc4de.zip
* mm-util.el (mm-use-find-coding-systems-region): New variable.
(mm-find-mime-charset-region): Use it. * nntp.el (nntp-send-buffer): Use mm-with-unibyte-current-buffer.
-rw-r--r--lisp/gnus/ChangeLog3
-rw-r--r--lisp/gnus/mm-util.el6
-rw-r--r--lisp/gnus/nntp.el6
3 files changed, 12 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 440c98695b2..83f8d7b796b 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,6 +1,9 @@
12002-01-03 ShengHuo ZHU <zsh@cs.rochester.edu> 12002-01-03 ShengHuo ZHU <zsh@cs.rochester.edu>
2 2
3 * mm-util.el (mm-charset-to-coding-system): Don't setq charset. 3 * mm-util.el (mm-charset-to-coding-system): Don't setq charset.
4 * mm-util.el (mm-use-find-coding-systems-region): New variable.
5 (mm-find-mime-charset-region): Use it.
6 * nntp.el (nntp-send-buffer): Use mm-with-unibyte-current-buffer.
4 7
52002-01-01 ShengHuo ZHU <zsh@cs.rochester.edu> 82002-01-01 ShengHuo ZHU <zsh@cs.rochester.edu>
6 9
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index 6e56f9b12ef..bbc16c04879 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -281,6 +281,10 @@ prefer iso-2022-jp to japanese-shift-jis:
281 '(iso-2022-jp iso-2022-jp-2 japanese-shift-jis utf-8)) 281 '(iso-2022-jp iso-2022-jp-2 japanese-shift-jis utf-8))
282") 282")
283 283
284(defvar mm-use-find-coding-systems-region
285 (fboundp 'find-coding-systems-region)
286 "Use `find-coding-systems-region' to find proper coding systems.")
287
284;;; Internal variables: 288;;; Internal variables:
285 289
286;;; Functions: 290;;; Functions:
@@ -494,7 +498,7 @@ charset, and a longer list means no appropriate charset."
494 (let (charsets) 498 (let (charsets)
495 ;; The return possibilities of this function are a mess... 499 ;; The return possibilities of this function are a mess...
496 (or (and (mm-multibyte-p) 500 (or (and (mm-multibyte-p)
497 (fboundp 'find-coding-systems-region) 501 mm-use-find-coding-systems-region
498 ;; Find the mime-charset of the most preferred coding 502 ;; Find the mime-charset of the most preferred coding
499 ;; system that has one. 503 ;; system that has one.
500 (let ((systems (find-coding-systems-region b e))) 504 (let ((systems (find-coding-systems-region b e)))
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el
index 803fd975e5e..227b864f125 100644
--- a/lisp/gnus/nntp.el
+++ b/lisp/gnus/nntp.el
@@ -397,8 +397,10 @@ noticing asynchronous data.")
397 (set-buffer (nntp-find-connection-buffer nntp-server-buffer)) 397 (set-buffer (nntp-find-connection-buffer nntp-server-buffer))
398 (erase-buffer))) 398 (erase-buffer)))
399 (nntp-encode-text) 399 (nntp-encode-text)
400 (process-send-region (nntp-find-connection nntp-server-buffer) 400 (mm-with-unibyte-current-buffer
401 (point-min) (point-max)) 401 ;; Some encoded unicode text contains character 0x80-0x9f e.g. Euro.
402 (process-send-region (nntp-find-connection nntp-server-buffer)
403 (point-min) (point-max)))
402 (nntp-retrieve-data 404 (nntp-retrieve-data
403 nil nntp-address nntp-port-number nntp-server-buffer 405 nil nntp-address nntp-port-number nntp-server-buffer
404 wait-for nnheader-callback-function)) 406 wait-for nnheader-callback-function))