diff options
| author | Chong Yidong | 2007-04-01 17:38:10 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-04-01 17:38:10 +0000 |
| commit | b6aee6ff1a144788a9ef686e4cdbe7a4684c4e3d (patch) | |
| tree | 111a2f75f10d73b88df0c7e6916190e1af1ed582 | |
| parent | 34f6db45c8a66560c4be2bf65c980c5fb82896b6 (diff) | |
| download | emacs-b6aee6ff1a144788a9ef686e4cdbe7a4684c4e3d.tar.gz emacs-b6aee6ff1a144788a9ef686e4cdbe7a4684c4e3d.zip | |
(smtpmail-via-smtp): Use standard case table when downcasing.
| -rw-r--r-- | lisp/mail/smtpmail.el | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index e1e742a1d72..66015475e4c 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -691,8 +691,18 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 691 | (>= (car response-code) 400)) | 691 | (>= (car response-code) 400)) |
| 692 | (throw 'done nil))) | 692 | (throw 'done nil))) |
| 693 | (dolist (line (cdr (cdr response-code))) | 693 | (dolist (line (cdr (cdr response-code))) |
| 694 | (let ((name (mapcar (lambda (s) (intern (downcase s))) | 694 | (let ((old-case-table (current-case-table)) |
| 695 | (split-string (substring line 4) "[ ]")))) | 695 | name) |
| 696 | ;; Make sure we're using the standard case table | ||
| 697 | ;; when downcasing; for instance, a downcased I is a | ||
| 698 | ;; dotless i in Turkish. | ||
| 699 | (unwind-protect | ||
| 700 | (progn (set-case-table (standard-case-table)) | ||
| 701 | (setq name | ||
| 702 | (mapcar (lambda (s) (intern (downcase s))) | ||
| 703 | (split-string | ||
| 704 | (substring line 4) "[ ]")))) | ||
| 705 | (set-case-table old-case-table)) | ||
| 696 | (and (eq (length name) 1) | 706 | (and (eq (length name) 1) |
| 697 | (setq name (car name))) | 707 | (setq name (car name))) |
| 698 | (and name | 708 | (and name |