From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: kbd vs read-key-sequence Date: Thu, 1 Mar 2007 13:48:38 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172753388 10405 80.91.229.12 (1 Mar 2007 12:49:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2007 12:49:48 +0000 (UTC) Cc: Emacs Devel To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 01 13:49:40 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HMkj4-0003l7-Qu for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2007 13:49:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMkj6-0005KR-EJ for ged-emacs-devel@m.gmane.org; Thu, 01 Mar 2007 07:49:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMkiu-0005KM-PT for emacs-devel@gnu.org; Thu, 01 Mar 2007 07:49:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMkit-0005K5-AF for emacs-devel@gnu.org; Thu, 01 Mar 2007 07:49:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMkis-0005Jz-RD for emacs-devel@gnu.org; Thu, 01 Mar 2007 07:49:26 -0500 Original-Received: from wr-out-0506.google.com ([64.233.184.230]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HMkis-00086g-G8 for emacs-devel@gnu.org; Thu, 01 Mar 2007 07:49:26 -0500 Original-Received: by wr-out-0506.google.com with SMTP id i3so642562wra for ; Thu, 01 Mar 2007 04:49:25 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=n1W32XXyqLCCaPabVmsfCWc1gcvb3NwMPm5jFL4oOWd6xsrP1Ee5qi2dmf6ssS2ridQ4FNsSMJIy1F6IjZbgGzHu9FU0RgWhZOIKiMCJ04FQhIX/7+kFF1SEyR1VgB7pIyDho+nM1dD7CAGWEpa+yzUUgGCl4bXsOshZC1rE0HQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PnNYdHJHR278AkbO3BApOoMlZOWS2VMn/xtXyWUYRoRsTQx2ITSqtZfrEqlQC9YxeHe999F+5UWQrgoVsJ1XhkkpDQzggEpr6VzqLD64zZRO48nqSTI19CZKtGwTX6ewonglhuBtH0m217gCPoMm0ql+tkMTKrwiWKLpb6VY6SM= Original-Received: by 10.114.166.1 with SMTP id o1mr231973wae.1172753318175; Thu, 01 Mar 2007 04:48:38 -0800 (PST) Original-Received: by 10.114.234.16 with HTTP; Thu, 1 Mar 2007 04:48:38 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:67129 Archived-At: On 3/1/07, Stefan Monnier wrote: > Looks like a bug in our w32 code, where we somehow fail to decode the chars > before returning them from read-key-sequence. I honestly cannot say whether it is a bug in the w32 code, or the consequence of the complexity of input decoding (with keyboard-translate-table, translation-table-for-input, function-key-map, key-translation-map, coding systems and whatnot). In any case: ;; Kubuntu 6.10 read-char / read-event => 2234 (aref translation-table-for-input 2234) => 2234 (lookup-key key-translation-map [186]) => nil ;; Windows XP SP2 read-char / read-event => 186 (aref translation-table-for-input 2234) => nil (lookup-key key-translation-map [186]) => encoded-kb-self-insert-ccl Juanma