Subject: bug#14755: Trunk bootstrap failure

From: Angelo Graziosi <[email-masked]>
Date: Sun, 30 Jun 2013 16:03:25 +0200

Il 30/06/2013 14.48, Ari Roponen ha scritto:
> Angelo Graziosi <[email-masked]> writes:
>
>> As suspected (see this thread:
>> http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg01328.html)
>> the bootstrap failure of trunk r.113227 probably isn't platform
>> dependent. Not only it fails on Cygwin but also on Kubuntu. You need
>> only to bootstrap on a *clean clean* tree.

>
> I got the same failure, too. This commit seems to cause it:
>
>    revno: 113220 [merge]
>    committer: K. Handa <[email-masked]>
>    branch nick: trunk
>    timestamp: Sat 2013-06-29 12:46:39 +0900
>    message:
>      Add the coding system prefer-utf-8.

Confirmed. Rev. 113219 bootstraps while rev. 113220 doesn't...

>
> The following patch seems to fix the problem. Remember to delete
> src/bootstrap-emacs, so that the patched version is used.
>
> === modified file 'lisp/international/mule-cmds.el'
> --- lisp/international/mule-cmds.el	2013-06-28 14:42:55 +0000
> +++ lisp/international/mule-cmds.el	2013-06-30 06:07:06 +0000
> @@ -1031,7 +1031,9 @@
>   	(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))))
> +	       (if (stringp from)
> +		   (multibyte-string-p from)
> +		 (< (- to from) (- (position-bytes to) (position-bytes from)))))
>   	  (setq coding-system
>   		(coding-system-change-text-conversion coding-system 'utf-8)))
>         coding-system)))
>

indeed... with it I can bootstrap trunk!

Ciao,
  Angelo.