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#14403: 24.3.50; [regression] Typing non-ascii characters on a non-GUI MS-Windows session Date: Thu, 23 May 2013 10:02:14 -0400 Message-ID: References: <87ppwt2x7p.fsf@gmail.com> <83hai5736q.fsf@gnu.org> <83sj1o64q8.fsf@gnu.org> <8338teu4ux.fsf@gnu.org> <83zjvms9ag.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369317812 6239 80.91.229.3 (23 May 2013 14:03:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 May 2013 14:03:32 +0000 (UTC) Cc: 14403-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 23 16:03:30 2013 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 1UfW76-0005RC-Il for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 May 2013 16:03:28 +0200 Original-Received: from localhost ([::1]:34638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfW76-0000gA-73 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 May 2013 10:03:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfW6w-0000f0-Ia for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 10:03:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfW6r-0001pY-Jz for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 10:03:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfW6r-0001pM-GC for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 10:03:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UfW7f-0004O4-0d for bug-gnu-emacs@gnu.org; Thu, 23 May 2013 10:04:03 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 May 2013 14:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 14403 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 14403@debbugs.gnu.org, monnier@iro.umontreal.ca, dmoncayo@gmail.com Original-Received: via spool by 14403-done@debbugs.gnu.org id=D14403.136931779516757 (code D ref 14403); Thu, 23 May 2013 14:04:01 +0000 Original-Received: (at 14403-done) by debbugs.gnu.org; 23 May 2013 14:03:15 +0000 Original-Received: from localhost ([127.0.0.1]:58228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UfW6s-0004MB-Fg for submit@debbugs.gnu.org; Thu, 23 May 2013 10:03:15 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:28857) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UfW6o-0004LR-RR for 14403-done@debbugs.gnu.org; Thu, 23 May 2013 10:03:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZoF/2dsb2JhbABEvw4Xc4IfAQUnLyMQCzQSFA0LDRABExOHfwMPt0sNiVWMEoR4A5Q3jQ+DNIFegxM X-IPAS-Result: Av4EABK/CFFFpZoF/2dsb2JhbABEvw4Xc4IfAQUnLyMQCzQSFA0LDRABExOHfwMPt0sNiVWMEoR4A5Q3jQ+DNIFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="14216431" Original-Received: from 69-165-154-5.dsl.teksavvy.com (HELO pastel.home) ([69.165.154.5]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 23 May 2013 10:02:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 98F876E6E5; Thu, 23 May 2013 10:02:14 -0400 (EDT) In-Reply-To: <83zjvms9ag.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 23 May 2013 05:46:15 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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.x 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:74486 Archived-At: I installed the patch below which I hope fixes this problem. Stefan === modified file 'src/ChangeLog' --- src/ChangeLog 2013-05-22 21:35:00 +0000 +++ src/ChangeLog 2013-05-23 13:22:33 +0000 @@ -1,3 +1,7 @@ +2013-05-23 Stefan Monnier + + * keyboard.c (read_decoded_char): Don't decode under w32 (bug#14403). + 2013-05-22 Barry OReilly (tiny change) * casetab.c (init_casetab_once): Fix last change (bug#14424). === modified file 'src/keyboard.c' --- src/keyboard.c 2013-04-14 20:33:57 +0000 +++ src/keyboard.c 2013-05-23 13:21:53 +0000 @@ -6827,6 +6827,8 @@ /* XXX I think the following code should be moved to separate hook functions in system-dependent files. */ #ifdef WINDOWSNT + /* FIXME: AFAIK, tty_read_avail_input is not used under w32 since the non-GUI + code sets read_socket_hook to w32_console_read_socket instead! */ return 0; #else /* not WINDOWSNT */ if (! tty->term_initted) /* In case we get called during bootstrap. */ @@ -8700,6 +8702,10 @@ { Lisp_Object nextevt = read_char (commandflag, map, prev_event, used_mouse_menu, NULL); +#ifdef WINDOWSNT + /* w32_console already returns decoded events. */ + return nextevt; +#else struct frame *frame = XFRAME (selected_frame); struct terminal *terminal = frame->terminal; if (!((FRAME_TERMCAP_P (frame) || FRAME_MSDOS_P (frame)) @@ -8750,6 +8756,7 @@ = Fcons (events[--n], Vunread_command_events); return events[0]; } +#endif } }