From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Johnson Newsgroups: gmane.emacs.bugs Subject: bug#7117: 23.2.2 mangles terminal escape sequences Date: Thu, 30 Sep 2010 13:37:40 +0200 Message-ID: <4CA47684.5020806@ece.cmu.edu> References: <4CA089B5.80601@ece.cmu.edu> <4CA174DA.701@ece.cmu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285846901 4921 80.91.229.12 (30 Sep 2010 11:41:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2010 11:41:41 +0000 (UTC) Cc: 7117@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 30 13:41:39 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P1HW5-0000gr-H2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Sep 2010 13:41:37 +0200 Original-Received: from localhost ([127.0.0.1]:42426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1HW4-0006qB-6o for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Sep 2010 07:41:36 -0400 Original-Received: from [140.186.70.92] (port=40193 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1HVy-0006q6-KH for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2010 07:41:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P1HVu-0002um-A9 for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2010 07:41:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52336) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1HVu-0002ui-7W for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2010 07:41:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P1HPh-0008Dw-LR; Thu, 30 Sep 2010 07:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ryan Johnson Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Sep 2010 11:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7117 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7117-submit@debbugs.gnu.org id=B7117.128584649131606 (code B ref 7117); Thu, 30 Sep 2010 11:35:01 +0000 Original-Received: (at 7117) by debbugs.gnu.org; 30 Sep 2010 11:34:51 +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 1P1HPW-0008Dj-Mt for submit@debbugs.gnu.org; Thu, 30 Sep 2010 07:34:50 -0400 Original-Received: from bache.ece.cmu.edu ([128.2.129.23]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1HPU-0008Da-Cf for 7117@debbugs.gnu.org; Thu, 30 Sep 2010 07:34:49 -0400 Original-Received: from [128.178.77.144] (diaspc12.epfl.ch [128.178.77.144]) by bache.ece.cmu.edu (Postfix) with ESMTP id E52CF18B; Thu, 30 Sep 2010 07:37:42 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 In-Reply-To: <4CA174DA.701@ece.cmu.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 30 Sep 2010 07:35:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40573 Archived-At: On 9/28/2010 6:53 AM, Ryan Johnson wrote: > On 9/27/2010 10:52 PM, Stefan Monnier wrote: >>> Steps to reproduce: >>> 1. ssh to a machine with emacs-23 installed (I suspect slower >>> networks would expose this more, but the bug bites me even over >>> intranet) >>> 2. compile tee-input.c (see below) into a shared library (on >>> solaris: >>> `cc -g -G -xcode=pic13 -ldl -hlibtee-input.so tee-input.c -g -o >>> libtee-input.so') >>> 3. invoke `LD_PRELOAD=libtee-input.so emacs -nw -Q 2>input.txt' >>> 4. M-x xterm-mouse-mode >>> 5. flick the mouse scroll wheel hard, so it generates many ticks in >>> quick succession (note the garbage that results) >>> 6. M-x show-lossage (note the mangled escape sequences) >>> 7. C-x C-c >>> 8. Examine input.txt (note the intact escape sequences) >> Does (set-keyboard-coding-system 'binary) circumvent the problem? > No. In fact, the solaris machine which I ran the example on defaults > to `no-conversion' (an alias of binary iirc) for some reason. Sorry, I > forgot to mention before. > > This matches my expectations, since bug #6920 arises before any coding > system touches the input. Any hints on where the problem might lurk? I poked around a little but without luck -- the functions that power read-char are many hundreds of lines long and seem to weave between lisp and C at regular intervals. I'm willing to go source diving but it's a bit daunting to wade into the C code again without a starting reference. Thanks, Ryan