From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Handa Kenichi Newsgroups: gmane.emacs.bugs Subject: bug#14755: Trunk bootstrap failure Date: Wed, 03 Jul 2013 09:39:01 -0400 Message-ID: References: <51D01B31.7050906@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1372858813 17056 80.91.229.3 (3 Jul 2013 13:40:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jul 2013 13:40:13 +0000 (UTC) Cc: 14755@debbugs.gnu.org, angelo.graziosi@alice.it To: Ari Roponen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 03 15:40:13 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 1UuNI4-00013l-KK for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jul 2013 15:40:12 +0200 Original-Received: from localhost ([::1]:60297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuNI4-0000wh-2R for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jul 2013 09:40:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuNI1-0000wb-3U for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2013 09:40:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuNHw-0007dJ-4m for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2013 09:40:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuNHv-0007cC-V9 for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2013 09:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UuNHu-0004j5-Vo for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2013 09:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Handa Kenichi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jul 2013 13:40: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.137285874617987 (code B ref 14755); Wed, 03 Jul 2013 13:40:02 +0000 Original-Received: (at 14755) by debbugs.gnu.org; 3 Jul 2013 13:39:06 +0000 Original-Received: from localhost ([127.0.0.1]:54256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuNGz-0004g1-RX for submit@debbugs.gnu.org; Wed, 03 Jul 2013 09:39:06 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:55810 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UuNGw-0004fi-Bu for 14755@debbugs.gnu.org; Wed, 03 Jul 2013 09:39:03 -0400 Original-Received: from handa by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UuNGv-0006MP-9P; Wed, 03 Jul 2013 09:39:01 -0400 In-Reply-To: <8761wvvk6e.fsf@arirop.lan> (message from Ari Roponen on Sun, 30 Jun 2013 15:48:25 +0300) 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:75851 Archived-At: In article <8761wvvk6e.fsf@arirop.lan>, Ari Roponen writes: > 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': [...] > 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. Oops, my fault. > The following patch seems to fix the problem. Remember to delete > src/bootstrap-emacs, so that the patched version is used. Yes, your patch is correct. Thank you. --- Kenichi Handa handa@gnu.org > === 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