From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ari Roponen Newsgroups: gmane.emacs.bugs Subject: bug#14755: Trunk bootstrap failure Date: Sun, 30 Jun 2013 15:48:25 +0300 Message-ID: <8761wvvk6e.fsf@arirop.lan> References: <51D01B31.7050906@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372596553 6386 80.91.229.3 (30 Jun 2013 12:49:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Jun 2013 12:49:13 +0000 (UTC) Cc: 14755@debbugs.gnu.org To: Angelo Graziosi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 30 14:49:14 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UtH45-00049Y-CJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jun 2013 14:49:13 +0200 Original-Received: from localhost ([::1]:52086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtH44-00054j-7F for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Jun 2013 08:49:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtH3y-00054N-MH for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2013 08:49:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtH3v-0000aT-El for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2013 08:49:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtH3v-0000aP-Bd for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2013 08:49:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UtH3u-0007oY-Gd for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2013 08:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ari Roponen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jun 2013 12:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14755 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14755-submit@debbugs.gnu.org id=B14755.137259652530010 (code B ref 14755); Sun, 30 Jun 2013 12:49:02 +0000 Original-Received: (at 14755) by debbugs.gnu.org; 30 Jun 2013 12:48:45 +0000 Original-Received: from localhost ([127.0.0.1]:49060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UtH3b-0007nx-N9 for submit@debbugs.gnu.org; Sun, 30 Jun 2013 08:48:44 -0400 Original-Received: from mail-bk0-f50.google.com ([209.85.214.50]:60031) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UtH3W-0007ne-Aa for 14755@debbugs.gnu.org; Sun, 30 Jun 2013 08:48:39 -0400 Original-Received: by mail-bk0-f50.google.com with SMTP id ik8so1322679bkc.9 for <14755@debbugs.gnu.org>; Sun, 30 Jun 2013 05:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=i2OwH4wjlmB6Aux8QZ9Bz5blfd+F9mKeMaQhBxhHkuc=; b=F+ep7j+fM4afwJodRIx0l5Umiqi3dDq4pDbmKpmSpuL7rcwE7pntwx/IvoF996y8sf lB+fS8U6J5jrGwxqU8k/bzZM1cIXsS7LphQHbLj8esdISGCodvjs43dD6gfiaF55zWom 0uZR88dVy0ln6zyG+CxRp98NBHNH8Cmk9joGyOJxJCUWxkxreiCc1/XUJXCJIA6UUnme Y64VS7e0pm69ndWT8/omlx3VqhY8RmSixjiLmv57QzKZPPTfYJILdcxXH+hQL4y8eWg3 N89zq7mjxpFn33/TKGHTv/EzPC/ehobN0y085MuqLh0sra5eiRLtispcyAs48F+b6iDG wkvQ== X-Received: by 10.204.235.69 with SMTP id kf5mr2455057bkb.86.1372596511889; Sun, 30 Jun 2013 05:48:31 -0700 (PDT) Original-Received: from arirop.lan (dsl-jklbrasgw1-50df8b-234.dhcp.inet.fi. [80.223.139.234]) by mx.google.com with ESMTPSA id ok9sm6382220bkb.8.2013.06.30.05.48.30 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 30 Jun 2013 05:48:31 -0700 (PDT) In-Reply-To: <51D01B31.7050906@alice.it> (Angelo Graziosi's message of "Sun, 30 Jun 2013 13:49:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75741 Archived-At: Angelo Graziosi 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. > > Angelo > I got the same failure, too. This commit seems to cause it: revno: 113220 [merge] committer: K. Handa branch nick: trunk timestamp: Sat 2013-06-29 12:46:39 +0900 message: Add the coding system prefer-utf-8. The above commit added this to `select-safe-coding-system': @@ -1029,6 +1029,11 @@ (error "Save aborted")))) (when (and tick (/= tick (buffer-chars-modified-tick))) (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)))) + (setq coding-system + (coding-system-change-text-conversion coding-system 'utf-8))) coding-system))) This code fails when the "Kludgy feature" mentioned in the docstring is used: if FROM is a string, the string is the target text, and TO is ignored. 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))) -- Ari Roponen