Fix bug #14755 which prevented autoloads from being computed.
[bpt/emacs.git] / lisp / international / mule-cmds.el
index 6ef7709..62b9672 100644 (file)
@@ -1031,7 +1031,10 @@ and try again)? " coding-system auto-cs))
        (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)))