use `set-buffer-multibyte' instead of `imap-disable-multibyte'.
* tls.el: Require `pces'.
(open-tls-stream): Use `as-binary-process'.
+2003-03-24 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * imap.el (imap-tls-open): Don't bind coding-systems; use
+ `set-buffer-multibyte' instead of `imap-disable-multibyte'.
+
+ * tls.el: Require `pces'.
+ (open-tls-stream): Use `as-binary-process'.
+
2003-03-23 Simon Josefsson <jas@extundo.com>
* GNUS-NEWS: Add IDNA. Add TLS. Fix USEFOR reference.
-2003-03-22 Frank Schmitt <ich@frank-schmitt.net>
+2003-03-22 Frank Schmitt <ich@frank-schmitt.net>
* make.bat: Redone from scratch; supports both Emacs and XEmacs
now; correctly generate gnus-load.el; check for errors; use
makeinfo if available, infohack.el if it isn't; be less verbose
when copying files; copy files from etc/gnus and etc/smilies, too
-2003-03-22 Frank Schmitt <ich@frank-schmitt.net>
+2003-03-22 Frank Schmitt <ich@frank-schmitt.net>
* make-x.bat: Removed, make.bat does its job now.
-2003-03-22 Frank Schmitt <ich@frank-schmitt.net>
+2003-03-22 Frank Schmitt <ich@frank-schmitt.net>
* etc/gnus-tut.txt: Include Gnus FAQ from http://my.gnus.org.
(defun imap-tls-open (name buffer server port)
(let* ((port (or port imap-default-tls-port))
- (coding-system-for-read imap-coding-system-for-read)
- (coding-system-for-write imap-coding-system-for-write)
(process (open-tls-stream name buffer server port)))
(when process
(while (and (memq (process-status process) '(open run))
(sit-for 1))
(and imap-log
(with-current-buffer (get-buffer-create imap-log-buffer)
- (imap-disable-multibyte)
+ (set-buffer-multibyte nil)
(buffer-disable-undo)
(goto-char (point-max))
(insert-buffer-substring buffer)))
;;; Code:
+(require 'pces)
+
(eval-and-compile
(autoload 'format-spec "format-spec")
(autoload 'format-spec-make "format-spec"))
(while (and (not done) (setq cmd (pop cmds)))
(message "Opening TLS connection with `%s'..." cmd)
(let* ((process-connection-type tls-process-connection-type)
- (process (start-process
- name buffer shell-file-name shell-command-switch
- (format-spec
- cmd
- (format-spec-make
- ?h host
- ?p (if (integerp service)
- (int-to-string service)
- service)))))
+ (process (as-binary-process
+ (start-process
+ name buffer shell-file-name shell-command-switch
+ (format-spec
+ cmd
+ (format-spec-make
+ ?h host
+ ?p (if (integerp service)
+ (int-to-string service)
+ service))))))
response)
(while (and process
(memq (process-status process) '(open run))