From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7380: 23.2; Dead keys misinterpreted in gtk emacs Date: Fri, 18 Nov 2011 13:03:26 -0500 Message-ID: References: <87d3qbe9et.wl%idleroux@fastmail.fm> <878w0ntt35.wl%idleroux@fastmail.fm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321639456 23090 80.91.229.12 (18 Nov 2011 18:04:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2011 18:04:16 +0000 (UTC) Cc: 7380@debbugs.gnu.org To: Ian D. Leroux Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 18 19:04:12 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 1RRSnL-00085r-7F for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Nov 2011 19:04:11 +0100 Original-Received: from localhost ([::1]:59295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRSnK-0002Hq-OE for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Nov 2011 13:04:10 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRSnG-0002Ey-Ph for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 13:04:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRSnE-0002qr-WF for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 13:04:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRSnE-0002qn-U1 for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 13:04:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RRSoA-0001cY-FU for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2011 13:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Nov 2011 18:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7380 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7380-submit@debbugs.gnu.org id=B7380.13216394706185 (code B ref 7380); Fri, 18 Nov 2011 18:05:02 +0000 Original-Received: (at 7380) by debbugs.gnu.org; 18 Nov 2011 18:04:30 +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 1RRSnd-0001bh-0D for submit@debbugs.gnu.org; Fri, 18 Nov 2011 13:04:29 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RRSna-0001bZ-1w for 7380@debbugs.gnu.org; Fri, 18 Nov 2011 13:04:27 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAB6dxk5FpZVk/2dsb2JhbABDqjGBBoFyAQEEAVYjBQsLNBIUGA0kiBa2f4oXBIgXmXeESg X-IronPort-AV: E=Sophos;i="4.69,534,1315195200"; d="scan'208";a="148504800" Original-Received: from 69-165-149-100.dsl.teksavvy.com (HELO pastel.home) ([69.165.149.100]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 18 Nov 2011 13:03:26 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id A017C5936A; Fri, 18 Nov 2011 13:03:26 -0500 (EST) In-Reply-To: <878w0ntt35.wl%idleroux@fastmail.fm> (Ian D. Leroux's message of "Sat, 20 Nov 2010 19:31:58 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 18 Nov 2011 13:05:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:54045 Archived-At: >> Not sure it'll help, tho. We'll need either someone to be able to >> reproduce it, or you'll need to dig in the code, play with GDB to try >> and see what's going on there. If you're up to it, you can try and >> place breakpoints near the call to XmbLookupString in xterm.c and single >> step there. Normally, the dead-acute event should not escape from this >> part of the code: instead it should turn into "nothing" (just change >> some state somewhere either in compose_status or in "FRAME_XIC (f)" >> depending on whether that frame uses XIM/XIC), > I had a first crack at this. XmbLookupString is never called because > FRAME_XIC (f) is NULL, so lines 6413--6441 are skipped and > XLookupString is called instead. Hmm... that's clearly the source of the problem (XLookupString can only handle latin-1 locales, IIRC). > Where is FRAME_XIC (f) supposed to be set? In the x_window function, in src/xfns.c (there are 3 versions of this function :-( depending on whether or not we're using Gtk or some other toolkit or no toolkit at all). Could it be that use_xim is 0, somehow? Stefan "still works for me, even with en_US.UTF-8"