aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/international/mule-cmds.el17
1 files changed, 13 insertions, 4 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 077a196f474..acd53732140 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -1027,10 +1027,19 @@ it asks the user to select a proper coding system."
1027 ;; We should never use no-conversion for outgoing mail. 1027 ;; We should never use no-conversion for outgoing mail.
1028 (setq coding nil)) 1028 (setq coding nil))
1029 (if (fboundp select-safe-coding-system-function) 1029 (if (fboundp select-safe-coding-system-function)
1030 (funcall select-safe-coding-system-function 1030 (setq coding
1031 (point-min) (point-max) coding 1031 (funcall select-safe-coding-system-function
1032 (function (lambda (x) (coding-system-get x 'mime-charset)))) 1032 (point-min) (point-max) coding
1033 coding))) 1033 (function (lambda (x)
1034 (coding-system-get x 'mime-charset))))))
1035 (if coding
1036 ;; Be sure to use LF for end-of-line.
1037 (setq coding (coding-system-change-eol-conversion coding 'unix))
1038 ;; No coding system is decided. Usually this is the case that
1039 ;; the current buffer contains only ASCII. So, we hope
1040 ;; iso-8859-1 works.
1041 (setq coding 'iso-8859-1-unix))
1042 coding))
1034 1043
1035;;; Language support stuff. 1044;;; Language support stuff.
1036 1045