diff options
| author | Katsumi Yamaoka | 2010-08-06 03:43:29 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-08-06 03:43:29 +0000 |
| commit | cbfb9427737c02f3238e8e131dd062dd6bca796f (patch) | |
| tree | 567529672a9d8c1a86ad23f5675e9268bd189a91 | |
| parent | c95b508f9b3304c3ce45e5f7c6769dbe2978152c (diff) | |
| download | emacs-cbfb9427737c02f3238e8e131dd062dd6bca796f.tar.gz emacs-cbfb9427737c02f3238e8e131dd062dd6bca796f.zip | |
(rfc2047-encode): Use utf-8 charset as a last resort.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/rfc2047.el | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 4c364c3270d..fb4f6e64d02 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-08-06 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * rfc2047.el (rfc2047-encode): Use utf-8 as a last resort if | ||
| 4 | determining charset of text fails. | ||
| 5 | |||
| 1 | 2010-08-01 Katsumi Yamaoka <yamaoka@jpl.org> | 6 | 2010-08-01 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 7 | ||
| 3 | * nnmail.el (nnmail-get-new-mail-1): Revert. | 8 | * nnmail.el (nnmail-get-new-mail-1): Revert. |
diff --git a/lisp/gnus/rfc2047.el b/lisp/gnus/rfc2047.el index 840b02a26fd..27d34ee5290 100644 --- a/lisp/gnus/rfc2047.el +++ b/lisp/gnus/rfc2047.el | |||
| @@ -655,6 +655,9 @@ should not change this value.") | |||
| 655 | Point moves to the end of the region." | 655 | Point moves to the end of the region." |
| 656 | (let ((mime-charset (or (mm-find-mime-charset-region b e) (list 'us-ascii))) | 656 | (let ((mime-charset (or (mm-find-mime-charset-region b e) (list 'us-ascii))) |
| 657 | cs encoding tail crest eword) | 657 | cs encoding tail crest eword) |
| 658 | ;; Use utf-8 as a last resort if determining charset of text fails. | ||
| 659 | (if (memq nil mime-charset) | ||
| 660 | (setq mime-charset (list 'utf-8))) | ||
| 658 | (cond ((> (length mime-charset) 1) | 661 | (cond ((> (length mime-charset) 1) |
| 659 | (error "Can't rfc2047-encode `%s'" | 662 | (error "Can't rfc2047-encode `%s'" |
| 660 | (buffer-substring-no-properties b e))) | 663 | (buffer-substring-no-properties b e))) |