aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-05-06 21:28:03 +0000
committerStefan Monnier2004-05-06 21:28:03 +0000
commit31a54b0e66f0cdbc058b1127fe79f393b8df18d9 (patch)
treecf620cd56345534ac0b7b5e6e4961ca652e56b67
parent24d5055ceff11f10a900637af1e193f798dfec04 (diff)
downloademacs-31a54b0e66f0cdbc058b1127fe79f393b8df18d9.tar.gz
emacs-31a54b0e66f0cdbc058b1127fe79f393b8df18d9.zip
(nnimap-demule): Avoid string-as-multibyte.
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/nnimap.el14
2 files changed, 13 insertions, 5 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index dc39720f79b..ac1bad7e3ab 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,7 @@
12004-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * nnimap.el (nnimap-demule): Avoid string-as-multibyte.
4
12004-03-27 Juanma Barranquero <lektu@terra.es> 52004-03-27 Juanma Barranquero <lektu@terra.es>
2 6
3 * gnus-srvr.el (gnus-server-prepare): Remove spurious call to `cdr'. 7 * gnus-srvr.el (gnus-server-prepare): Remove spurious call to `cdr'.
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 02cb87af28b..a7cf82317b5 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -1,5 +1,6 @@
1;;; nnimap.el --- imap backend for Gnus 1;;; nnimap.el --- imap backend for Gnus
2;; Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 2
3;; Copyright (C) 1998,1999,2000,01,02,2004 Free Software Foundation, Inc.
3 4
4;; Author: Simon Josefsson <jas@pdc.kth.se> 5;; Author: Simon Josefsson <jas@pdc.kth.se>
5;; Jim Radford <radford@robby.caltech.edu> 6;; Jim Radford <radford@robby.caltech.edu>
@@ -671,9 +672,12 @@ function is generally only called when Gnus is shutting down."
671 (nnoo-status-message 'nnimap server))) 672 (nnoo-status-message 'nnimap server)))
672 673
673(defun nnimap-demule (string) 674(defun nnimap-demule (string)
674 (funcall (if (and (fboundp 'string-as-multibyte) 675 ;; BEWARE: we used to use string-as-multibyte here which is braindead
675 (subrp (symbol-function 'string-as-multibyte))) 676 ;; because it will turn accidental emacs-mule-valid byte sequences
676 'string-as-multibyte 677 ;; into multibyte chars. --Stef
678 (funcall (if (and (fboundp 'string-to-multibyte)
679 (subrp (symbol-function 'string-to-multibyte)))
680 'string-to-multibyte
677 'identity) 681 'identity)
678 (or string ""))) 682 (or string "")))
679 683
@@ -1383,5 +1387,5 @@ sure of changing the value of `foo'."
1383 1387
1384(provide 'nnimap) 1388(provide 'nnimap)
1385 1389
1386;;; arch-tag: 2b001f20-3ff9-4094-a0ad-46807c1ba70b 1390;; arch-tag: 2b001f20-3ff9-4094-a0ad-46807c1ba70b
1387;;; nnimap.el ends here 1391;;; nnimap.el ends here