From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#9318: 23.3.50; The first call of encode-coding-region() returns wrong result Date: Sat, 20 Aug 2011 17:26:04 -0400 Message-ID: <877h67vkpf.fsf@stupidchicken.com> References: <20110818090129.DC129360038@msa102.auone-net.jp> <20110819134637.9727A34803A@msa103.auone-net.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1313875619 3385 80.91.229.12 (20 Aug 2011 21:26:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 20 Aug 2011 21:26:59 +0000 (UTC) Cc: 9318@debbugs.gnu.org To: Kazuhiro Ito Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 20 23:26:55 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qut4B-0006VV-8m for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2011 23:26:55 +0200 Original-Received: from localhost ([::1]:51695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qut4A-0007yR-PE for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Aug 2011 17:26:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qut48-0007yM-4f for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2011 17:26:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qut46-0001pi-MW for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2011 17:26:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qut46-0001pe-L6 for bug-gnu-emacs@gnu.org; Sat, 20 Aug 2011 17:26:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qut6E-0007vL-Db; Sat, 20 Aug 2011 17:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Aug 2011 21:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9318 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9318-submit@debbugs.gnu.org id=B9318.131387570530413 (code B ref 9318); Sat, 20 Aug 2011 21:29:02 +0000 Original-Received: (at 9318) by debbugs.gnu.org; 20 Aug 2011 21:28:25 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qut5c-0007uU-UP for submit@debbugs.gnu.org; Sat, 20 Aug 2011 17:28:25 -0400 Original-Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qut5b-0007uM-1v for 9318@debbugs.gnu.org; Sat, 20 Aug 2011 17:28:24 -0400 Original-Received: from furball ([64.134.100.139]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p7KLQ50j026902 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 20 Aug 2011 17:26:05 -0400 In-Reply-To: <20110819134637.9727A34803A@msa103.auone-net.jp> (Kazuhiro Ito's message of "Fri, 19 Aug 2011 22:46:18 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 20 Aug 2011 17:29:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:50180 Archived-At: Kazuhiro Ito writes: >> When I start Emacs and evaluate the below code, unexpected result return= s. > >> (let ((func (lambda () >> (with-temp-buffer >> (mapc 'insert '(166 25339)) >> (encode-coding-region (point-min) (point-max) 'ctext-unix) >> (buffer-string))))) >> (cons (funcall func) >> (funcall func))) >> -> ("=C2=A6=E6=8B=BB^@^@^@^@^@^@^@^@^@^@" . "^[$(D\"C^[$(H*f^[(B") > >> car of the result is not constant. > > I noticed this problem is not Windows specific. I confirmed that it > is reproducible in Emacs 23.3.1 (build by pkgsrc) on NetBSD/amd64 via > SSH from remote host. But it doesn't occur on openSUSE 11.3. Could you run Emacs under a debugger, trigger the crash, and provide a backtrace? (You will need to have compiled Emacs with debugging symbols.)