lisp/international/mule-cmds.el (select-safe-coding-system): Handle
the case of FROM being a string correctly.
+2013-06-30 Eli Zaretskii <eliz@gnu.org>
+
+ * international/mule-cmds.el (select-safe-coding-system): Handle
+ the case of FROM being a string correctly. (Bug#14755)
+
2013-06-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/shr.el (shr-make-table-1): Add a sanity check that allows
(error "Canceled because the buffer was modified"))
(if (and (eq (coding-system-type coding-system) 'undecided)
(coding-system-get coding-system :prefer-utf-8)
- (< (- to from) (- (position-bytes to) (position-bytes from))))
+ (or (multibyte-string-p from)
+ (and (number-or-marker-p from)
+ (< (- to from)
+ (- (position-bytes to) (position-bytes from))))))
(setq coding-system
(coding-system-change-text-conversion coding-system 'utf-8)))
coding-system)))