From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12055: 24.1.50; Characters "=?UTF-8?Q?=C3=A1?=" and "=?UTF-8?Q?=C3=A9?=" are not correctly displayed on a Windows terminal Date: Fri, 27 Jul 2012 18:12:18 +0300 Message-ID: <83zk6li6gd.fsf@gnu.org> References: <83vchajyb1.fsf@gnu.org> <83txwujwyg.fsf@gnu.org> <83pq7ijv9m.fsf@gnu.org> <83k3xqjnns.fsf@gnu.org> <83hastk8i1.fsf@gnu.org> <83d33hk212.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1343401997 3713 80.91.229.3 (27 Jul 2012 15:13:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jul 2012 15:13:17 +0000 (UTC) Cc: lekktu@gmail.com, 12055@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 27 17:13:15 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SumE5-0003Oq-Eg for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jul 2012 17:13:13 +0200 Original-Received: from localhost ([::1]:55797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SumE4-0003Ou-MB for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jul 2012 11:13:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SumE2-0003O2-Ba for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 11:13:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SumDy-0002tY-5B for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 11:13:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SumDx-0002tQ-Vu for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 11:13:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SumKg-0001YR-7S for bug-gnu-emacs@gnu.org; Fri, 27 Jul 2012 11:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Jul 2012 15:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12055 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12055-submit@debbugs.gnu.org id=B12055.13434023535915 (code B ref 12055); Fri, 27 Jul 2012 15:20:02 +0000 Original-Received: (at 12055) by debbugs.gnu.org; 27 Jul 2012 15:19:13 +0000 Original-Received: from localhost ([127.0.0.1]:44236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SumJt-0001XL-9y for submit@debbugs.gnu.org; Fri, 27 Jul 2012 11:19:13 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:56336) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SumJq-0001XC-OP for 12055@debbugs.gnu.org; Fri, 27 Jul 2012 11:19:11 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M7T00L00RJDE100@a-mtaout23.012.net.il> for 12055@debbugs.gnu.org; Fri, 27 Jul 2012 18:12:12 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M7T00LRZRKBDM20@a-mtaout23.012.net.il>; Fri, 27 Jul 2012 18:12:12 +0300 (IDT) In-reply-to: <83d33hk212.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list 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:62461 Archived-At: > Date: Fri, 27 Jul 2012 12:04:57 +0300 > From: Eli Zaretskii > Cc: lekktu@gmail.com, 12055@debbugs.gnu.org > > > Date: Fri, 27 Jul 2012 10:35:53 +0200 > > From: Dani Moncayo > > Cc: lekktu@gmail.com, 12055@debbugs.gnu.org > > > > > Please try that in the non-GUI session where you first set the > > > terminal coding-system to cp850. > > > > Ok. If I do: > > 1. emacs -nw -Q > > 2. C-x RET t cp850 RET > > 3. Visit the test file. > > > > Then the file is corrrectly displayed. > > Thanks. If no one beats me to it, I will look into the input issue > when I have time. Well, I see some strange stuff in the input processing. Please add this snippet: DebPrint (("key_event: %d %d 0x%x 0x%x {0x%x 0x%x} 0x%x\n", event->bKeyDown, event->wRepeatCount, event->wVirtualKeyCode, event->wVirtualScanCode, event->uChar.AsciiChar, event->uChar.UnicodeChar, event->dwControlKeyState)); at the very beginning of key_event function (in w32inevt.c), attach GDB to a running "emacs -Q -nw", and tell me what does GDB report when you type non-ASCII keys on your keyboard. That is, emacs -Q -nw gdb -p EMACS-PID (gdb) continue then type non-ASCII characters into Emacs. You should see messages such as these: warning: key_event: 0 1 0x54 0x14 {0xffffff80 0x580} 0x20 warning: key_event: 1 1 0x54 0x14 {0xffffff80 0x580} 0x20 (but with different codes). There are 2 messages for each keystroke: one when the key is pressed, the other when it is released. Please post here the exact output, and please tell for each pair of such messages which character did you type.