]> git.eshelyaron.com Git - emacs.git/commitdiff
(nnimap-demule): Avoid string-as-multibyte.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 6 May 2004 21:28:03 +0000 (21:28 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 6 May 2004 21:28:03 +0000 (21:28 +0000)
lisp/gnus/ChangeLog
lisp/gnus/nnimap.el

index dc39720f79b03a85c811e5da56c08df25de8e16c..ac1bad7e3ab4b370a30ec66b451eae5f63985401 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * nnimap.el (nnimap-demule): Avoid string-as-multibyte.
+
 2004-03-27  Juanma Barranquero  <lektu@terra.es>
 
        * gnus-srvr.el (gnus-server-prepare): Remove spurious call to `cdr'.
index 02cb87af28bea7c77a9fad159225a546f89e3557..a7cf82317b526c846fe441e6221115b6dbe68598 100644 (file)
@@ -1,5 +1,6 @@
 ;;; nnimap.el --- imap backend for Gnus
-;; Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+;; Copyright (C) 1998,1999,2000,01,02,2004  Free Software Foundation, Inc.
 
 ;; Author: Simon Josefsson <jas@pdc.kth.se>
 ;;         Jim Radford <radford@robby.caltech.edu>
@@ -671,9 +672,12 @@ function is generally only called when Gnus is shutting down."
     (nnoo-status-message 'nnimap server)))
 
 (defun nnimap-demule (string)
-  (funcall (if (and (fboundp 'string-as-multibyte)
-                   (subrp (symbol-function 'string-as-multibyte)))
-              'string-as-multibyte
+  ;; BEWARE: we used to use string-as-multibyte here which is braindead
+  ;; because it will turn accidental emacs-mule-valid byte sequences
+  ;; into multibyte chars.  --Stef
+  (funcall (if (and (fboundp 'string-to-multibyte)
+                   (subrp (symbol-function 'string-to-multibyte)))
+              'string-to-multibyte
             'identity)
           (or string "")))
 
@@ -1383,5 +1387,5 @@ sure of changing the value of `foo'."
 
 (provide 'nnimap)
 
-;;; arch-tag: 2b001f20-3ff9-4094-a0ad-46807c1ba70b
+;; arch-tag: 2b001f20-3ff9-4094-a0ad-46807c1ba70b
 ;;; nnimap.el ends here