From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Hin-Tak Leung Newsgroups: gmane.emacs.bugs Subject: bug#25203: [cjk] Fwd: HELP with emacs 25.1 and cjk-enc.el Date: Fri, 16 Dec 2016 14:18:21 +0000 (UTC) Message-ID: <2088662471.7284949.1481897901234@mail.yahoo.com> References: <2088662471.7284949.1481897901234.ref@mail.yahoo.com> Reply-To: Hin-Tak Leung NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1481897960 26795 195.159.176.226 (16 Dec 2016 14:19:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2016 14:19:20 +0000 (UTC) Cc: cjk-list@nongnu.org, by@moscito.org, 25203@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 16 15:19:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHtLq-0005R3-6b for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Dec 2016 15:19:10 +0100 Original-Received: from localhost ([::1]:60773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHtLu-0004Py-Gu for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Dec 2016 09:19:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHtLm-0004CC-3u for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2016 09:19:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHtLi-0005hh-Qi for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2016 09:19:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHtLi-0005hZ-NR for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2016 09:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cHtLi-0007w0-Gw for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2016 09:19:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <20161215000453.17313-1-htl10@users.sourceforge.net> Resent-From: Hin-Tak Leung Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2016 14:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25203-submit@debbugs.gnu.org id=B25203.148189790930451 (code B ref 25203); Fri, 16 Dec 2016 14:19:02 +0000 Original-Received: (at 25203) by debbugs.gnu.org; 16 Dec 2016 14:18:29 +0000 Original-Received: from localhost ([127.0.0.1]:43702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHtLB-0007v5-Ab for submit@debbugs.gnu.org; Fri, 16 Dec 2016 09:18:29 -0500 Original-Received: from nm14-vm1.bullet.mail.ir2.yahoo.com ([212.82.96.189]:59178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHtLA-0007us-2c for 25203@debbugs.gnu.org; Fri, 16 Dec 2016 09:18:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1481897902; bh=68bVvQIrZBC5KQFpb7zrASlgrhk0JE1YK2CgfGS+czo=; h=Date:From:Reply-To:To:Cc:Subject:References:From:Subject; b=XN+LOB7D8HlJ7YjEKbGCiZfZmEEIIkNEwQ+nbEnPgU7IBoWM1gjWjnCq4u1gE2Rf2NDyiR/V53SPAe9HR7K3cryNZO+7YgF559133LptHsPvkBWGQgBnU/8+Kj3FvyrOT0417B4CCI0WpOPXOpA5ZTr8azFL9cw8XzQSJSkEOeUmsZZXg9mg+0/Vym2ChK5kdGiuTBAIWw/uAP96NgCVy+9uGqEYc2Ym6nGC4p52TuTQ56OqsDviCSHW7phGqzInWLx5MmhRi7SdfewRFbcd4nKdIiYTH9sLHnjgfwCQo5wykkJfxl9PuNMZKMkJoB4AAWuWcHHATCLS2kJdMmYU5Q== Original-Received: from [212.82.98.63] by nm14.bullet.mail.ir2.yahoo.com with NNFMP; 16 Dec 2016 14:18:22 -0000 Original-Received: from [212.82.98.97] by tm16.bullet.mail.ir2.yahoo.com with NNFMP; 16 Dec 2016 14:18:22 -0000 Original-Received: from [127.0.0.1] by omp1034.mail.ir2.yahoo.com with NNFMP; 16 Dec 2016 14:18:22 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 182438.27503.bm@omp1034.mail.ir2.yahoo.com X-YMail-OSG: Yvz.0MUVM1mP179nASsvSj4hsQd4ZyT2YtassSzjC381aKo.CaQ9LG4a8LQT1tB 3ciqNnCi4issOMZsivYaAubOhdpmCFRDvBuV6MLc0hyriD9q_ukpJ4zrWyU_9l9cuQ0S56HvVz2v AK49XMtqq5jAPsT4DTwQ_rrd0WZCQfiek_51vKmLq3afz5ij2OFACQwg_rysDYT7.zMeQOVXH.Vd 9mhxfdGNeidgDpSzZoezrGRJyREa_DgQkbyn2Ndc_FPkmjKwcii9kkjcFbGh1LzQlXWolJXN2d_z hDZjjaR5pZmEnmgj5JJMRi0xbC0Q.UL0_MjtxHlhypaBtFlYuc7hqsWYZXK8vAkJS9c4d1ZClAco YyK0S_iHpNButu075YeUNbiNCO9MiMzrZ32vfsr2EctBHGdKaZabcyX0dmthNlDablQ3lUvuXXnQ QnQWl3Zu.oNlHEd2yM8XmgyU4uGxIvoltSAtrqxVtCAuX7b9ss1TuhvXD0WDc2ijpH_RpgWL3m4K drPzcBEiVz74zaOadNz4qHsIGkP4PwCwwDA-- Original-Received: from jws700035.mail.ir2.yahoo.com by sendmailws103.mail.ir2.yahoo.com; Fri, 16 Dec 2016 14:18:21 +0000; 1481897901.785 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:127090 Archived-At: -------------------------------------------- On Fri, 16/12/16, Eli Zaretskii wrote: =20 > Sorry, I don't understand the question.=C2=A0 Can you elaborate? =20 It is not a question - it is a follow-up correction to a proposed (wrong) b= ug fix to cjk-enc.el. This thread was started because cjk-enc.el broke with emacs 25. So I was cl= ose enough - and made it worse to crash with two new mesage()'s. The crash surp= risingly helps, in the end. The initial breakage was because there was already a message() (for progres= s reporting, which has worked for 10+ years until 24.5) a few lines above the two new ones I a= dded.=20 The relevant change in emacs 25 is, as you suggested, this: http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3Dc63246628461f748d66= a8a07ba008de2e00fd33a 'Obey coding-system-for-write when writing stdout/stderr in batch' There seems to be another breakage of cjk-enc.el - somehow, `write-region i= n emacs 25 for big5 input is calling cjk-encode (pre-write-conversion) more than once, and the 2nd ti= me wrongly. This only happens with emacs 25 and only with big5 input (i.e. not with earlier emacs= nor thai/mule input). So there is another recursion somewhere - still looking... I added a (backtrace) to cjk-encode and the 2nd+ calls are also from write-= region - so definitely needs C-level debugging to look further ( https://debbugs.gnu.org/cgi/bugreport.= cgi?bug=3D8108 ) Yes, the issue with crash with message() in pre-write-conversion is well-un= derstood now, and thanks a lot for all the help. Bug 25203 can close.