From unknown Sat Jun 21 05:01:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14043: 24.3.50; Compiler warning in cygw32 build on x86_64-cygwin Resent-From: Ken Brown Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2013 16:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14043 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 14043@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136405697830746 (code B ref -1); Sat, 23 Mar 2013 16:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Mar 2013 16:42:58 +0000 Received: from localhost ([127.0.0.1]:42429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJRWz-0007zr-Nb for submit@debbugs.gnu.org; Sat, 23 Mar 2013 12:42:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44922) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJRWx-0007zi-Ib for submit@debbugs.gnu.org; Sat, 23 Mar 2013 12:42:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJRUx-0006QQ-5L for submit@debbugs.gnu.org; Sat, 23 Mar 2013 12:40:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-104.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RECEIVED_FROM_WINDOWS_HOST,RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:49698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJRUw-0006QM-PQ for submit@debbugs.gnu.org; Sat, 23 Mar 2013 12:40:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJRUv-0005sL-EO for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2013 12:40:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJRUt-0006P9-EH for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2013 12:40:49 -0400 Received: from limestone4.mail.cornell.edu ([128.253.83.164]:50774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJRUt-0006OS-77 for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2013 12:40:47 -0400 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu ([10.16.197.9]) by limestone4.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id r2NGeY54012210 for ; Sat, 23 Mar 2013 12:40:35 -0400 (EDT) Received: from [172.16.1.90] (64-71-25-2.static.wiline.com [64.71.25.2]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r2NGedDF032052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 23 Mar 2013 12:40:40 -0400 Message-ID: <514DDB06.6070408@cornell.edu> Date: Sat, 23 Mar 2013 12:40:38 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000202010404000906040305" X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) This is a multi-part message in MIME format. --------------000202010404000906040305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In w32term.c:w32_initialize, the line DWORD input_locale_id = (DWORD) GetKeyboardLayout (0); (line 6666 in the current trunk) generates a "cast from pointer to integer of different size" warning in the cygw32 build on 64-bit Cygwin. I think that the warning can be safely ignored in this case, but I would prefer to avoid it. The attached patch fixes this. I'm wondering, however, whether the same warning occurs on 64-bit Windows. If so, maybe that should be fixed at the same time, but I don't know enough about Windows programming to do this. Ken In GNU Emacs 24.3.50.2 (x86_64-pc-cygwin) of 2013-03-20 on fiona Bzr revision: 112086 eggert@cs.ucla.edu-20130318210234-bpg2y8i713w6uqhr Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --without-makeinfo --with-w32 CFLAGS=-g3 -O0' --------------000202010404000906040305 Content-Type: text/plain; charset=windows-1252; name="w32term.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="w32term.patch" === modified file 'src/w32term.c' --- src/w32term.c 2013-03-15 10:07:29 +0000 +++ src/w32term.c 2013-03-23 05:52:28 +0000 @@ -6651,7 +6651,11 @@ Fset_input_mode (Qnil, Qnil, make_number (2), Qnil); { +#ifdef CYGWIN + uintptr_t input_locale_id = (uintptr_t) GetKeyboardLayout (0); +#else DWORD input_locale_id = (DWORD) GetKeyboardLayout (0); +#endif w32_keyboard_codepage = codepage_for_locale ((LCID) (input_locale_id & 0xffff)); } --------------000202010404000906040305-- From unknown Sat Jun 21 05:01:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14043: 24.3.50; Compiler warning in cygw32 build on x86_64-cygwin Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2013 18:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14043 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ken Brown Cc: 14043@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 14043-submit@debbugs.gnu.org id=B14043.13640632297420 (code B ref 14043); Sat, 23 Mar 2013 18:28:02 +0000 Received: (at 14043) by debbugs.gnu.org; 23 Mar 2013 18:27:09 +0000 Received: from localhost ([127.0.0.1]:42490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJT9o-0001vc-Ml for submit@debbugs.gnu.org; Sat, 23 Mar 2013 14:27:09 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:41374) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJT9i-0001vO-UE for 14043@debbugs.gnu.org; Sat, 23 Mar 2013 14:27:06 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MK400G00LJ8AS00@a-mtaout21.012.net.il> for 14043@debbugs.gnu.org; Sat, 23 Mar 2013 20:24:58 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MK400GC8LTL9Z30@a-mtaout21.012.net.il>; Sat, 23 Mar 2013 20:24:58 +0200 (IST) Date: Sat, 23 Mar 2013 20:25:03 +0200 From: Eli Zaretskii In-reply-to: <514DDB06.6070408@cornell.edu> X-012-Sender: halo1@inter.net.il Message-id: <8338vm3reo.fsf@gnu.org> References: <514DDB06.6070408@cornell.edu> X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Sat, 23 Mar 2013 12:40:38 -0400 > From: Ken Brown > > In w32term.c:w32_initialize, the line > > DWORD input_locale_id = (DWORD) GetKeyboardLayout (0); > > (line 6666 in the current trunk) generates a "cast from pointer to > integer of different size" warning in the cygw32 build on 64-bit Cygwin. > I think that the warning can be safely ignored in this case, but I > would prefer to avoid it. > > The attached patch fixes this. Does the alternative patch below also work? I'd like to avoid ifdef's, if possible. If you still see a warning, please show the 64-bit Cygwin definitions for DWORD, DWORD_PTR, HANDLE, and HKL. > I'm wondering, however, whether the same warning occurs on 64-bit > Windows. The Microsoft compiler emits much more warnings than even the latest picky versions of GCC, so I'm quite sure it also warns here, and the warning is (quite correctly) ignored. === modified file 'src/w32term.c' --- src/w32term.c 2013-03-23 09:01:14 +0000 +++ src/w32term.c 2013-03-23 18:19:24 +0000 @@ -6663,7 +6663,7 @@ w32_initialize (void) Fset_input_mode (Qnil, Qnil, make_number (2), Qnil); { - DWORD input_locale_id = (DWORD) GetKeyboardLayout (0); + DWORD input_locale_id = ((DWORD_PTR) GetKeyboardLayout (0) & 0xffffffff); w32_keyboard_codepage = codepage_for_locale ((LCID) (input_locale_id & 0xffff)); } From unknown Sat Jun 21 05:01:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14043: 24.3.50; Compiler warning in cygw32 build on x86_64-cygwin Resent-From: Ken Brown Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2013 22:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14043 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 14043@debbugs.gnu.org Received: via spool by 14043-submit@debbugs.gnu.org id=B14043.136407813431742 (code B ref 14043); Sat, 23 Mar 2013 22:36:02 +0000 Received: (at 14043) by debbugs.gnu.org; 23 Mar 2013 22:35:34 +0000 Received: from localhost ([127.0.0.1]:42634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJX2D-0008Fv-8W for submit@debbugs.gnu.org; Sat, 23 Mar 2013 18:35:33 -0400 Received: from limestone5.mail.cornell.edu ([128.253.83.165]:57448) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJX2B-0008Fn-D4 for 14043@debbugs.gnu.org; Sat, 23 Mar 2013 18:35:32 -0400 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu ([10.16.197.9]) by limestone5.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id r2NMXPMq004806; Sat, 23 Mar 2013 18:33:25 -0400 (EDT) Received: from [192.168.10.81] (ip-64-134-228-136.public.wayport.net [64.134.228.136]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r2NMXFdZ011740 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 23 Mar 2013 18:33:24 -0400 Message-ID: <514E2DAA.4070807@cornell.edu> Date: Sat, 23 Mar 2013 18:33:14 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 References: <514DDB06.6070408@cornell.edu> <8338vm3reo.fsf@gnu.org> In-Reply-To: <8338vm3reo.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.7 (------) On 3/23/2013 2:25 PM, Eli Zaretskii wrote: > Does the alternative patch below also work? I'd like to avoid > ifdef's, if possible. Yes, it does. I too am glad to see a solution that avoids the ifdefs. Thanks. Ken From unknown Sat Jun 21 05:01:18 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ken Brown Subject: bug#14043: closed (Re: bug#14043: 24.3.50; Compiler warning in cygw32 build on x86_64-cygwin) Message-ID: References: <514E4629.2000908@cornell.edu> <514DDB06.6070408@cornell.edu> X-Gnu-PR-Message: they-closed 14043 X-Gnu-PR-Package: emacs Reply-To: 14043@debbugs.gnu.org Date: Sun, 24 Mar 2013 00:21:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1364084462-8988-1" This is a multi-part message in MIME format... ------------=_1364084462-8988-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #14043: 24.3.50; Compiler warning in cygw32 build on x86_64-cygwin which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 14043@debbugs.gnu.org. --=20 14043: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14043 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1364084462-8988-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 14043-done) by debbugs.gnu.org; 24 Mar 2013 00:20:06 +0000 Received: from localhost ([127.0.0.1]:42651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJYfN-0002Jf-O4 for submit@debbugs.gnu.org; Sat, 23 Mar 2013 20:20:06 -0400 Received: from limestone5.mail.cornell.edu ([128.253.83.165]:47319) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJYfB-0002J4-Td for 14043-done@debbugs.gnu.org; Sat, 23 Mar 2013 20:20:04 -0400 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu ([10.16.197.9]) by limestone5.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id r2O0HlUP010156; Sat, 23 Mar 2013 20:17:47 -0400 (EDT) Received: from [172.16.1.90] (64-71-25-2.static.wiline.com [64.71.25.2]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r2O0HjHf009516 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 23 Mar 2013 20:17:47 -0400 Message-ID: <514E4629.2000908@cornell.edu> Date: Sat, 23 Mar 2013 20:17:45 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#14043: 24.3.50; Compiler warning in cygw32 build on x86_64-cygwin References: <514DDB06.6070408@cornell.edu> <8338vm3reo.fsf@gnu.org> <514E2DAA.4070807@cornell.edu> In-Reply-To: <514E2DAA.4070807@cornell.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 14043-done Cc: 14043-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.7 (------) On 3/23/2013 6:33 PM, Ken Brown wrote: > On 3/23/2013 2:25 PM, Eli Zaretskii wrote: >> Does the alternative patch below also work? I'd like to avoid >> ifdef's, if possible. > > Yes, it does. I too am glad to see a solution that avoids the ifdefs. I've committed the change as bzr revision 112120 and am closing the bug report. Ken ------------=_1364084462-8988-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Mar 2013 16:42:58 +0000 Received: from localhost ([127.0.0.1]:42429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJRWz-0007zr-Nb for submit@debbugs.gnu.org; Sat, 23 Mar 2013 12:42:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44922) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UJRWx-0007zi-Ib for submit@debbugs.gnu.org; Sat, 23 Mar 2013 12:42:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJRUx-0006QQ-5L for submit@debbugs.gnu.org; Sat, 23 Mar 2013 12:40:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-104.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RECEIVED_FROM_WINDOWS_HOST,RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:49698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJRUw-0006QM-PQ for submit@debbugs.gnu.org; Sat, 23 Mar 2013 12:40:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJRUv-0005sL-EO for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2013 12:40:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJRUt-0006P9-EH for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2013 12:40:49 -0400 Received: from limestone4.mail.cornell.edu ([128.253.83.164]:50774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJRUt-0006OS-77 for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2013 12:40:47 -0400 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu ([10.16.197.9]) by limestone4.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id r2NGeY54012210 for ; Sat, 23 Mar 2013 12:40:35 -0400 (EDT) Received: from [172.16.1.90] (64-71-25-2.static.wiline.com [64.71.25.2]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r2NGedDF032052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 23 Mar 2013 12:40:40 -0400 Message-ID: <514DDB06.6070408@cornell.edu> Date: Sat, 23 Mar 2013 12:40:38 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Compiler warning in cygw32 build on x86_64-cygwin Content-Type: multipart/mixed; boundary="------------000202010404000906040305" X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) This is a multi-part message in MIME format. --------------000202010404000906040305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In w32term.c:w32_initialize, the line DWORD input_locale_id = (DWORD) GetKeyboardLayout (0); (line 6666 in the current trunk) generates a "cast from pointer to integer of different size" warning in the cygw32 build on 64-bit Cygwin. I think that the warning can be safely ignored in this case, but I would prefer to avoid it. The attached patch fixes this. I'm wondering, however, whether the same warning occurs on 64-bit Windows. If so, maybe that should be fixed at the same time, but I don't know enough about Windows programming to do this. Ken In GNU Emacs 24.3.50.2 (x86_64-pc-cygwin) of 2013-03-20 on fiona Bzr revision: 112086 eggert@cs.ucla.edu-20130318210234-bpg2y8i713w6uqhr Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --without-makeinfo --with-w32 CFLAGS=-g3 -O0' --------------000202010404000906040305 Content-Type: text/plain; charset=windows-1252; name="w32term.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="w32term.patch" === modified file 'src/w32term.c' --- src/w32term.c 2013-03-15 10:07:29 +0000 +++ src/w32term.c 2013-03-23 05:52:28 +0000 @@ -6651,7 +6651,11 @@ Fset_input_mode (Qnil, Qnil, make_number (2), Qnil); { +#ifdef CYGWIN + uintptr_t input_locale_id = (uintptr_t) GetKeyboardLayout (0); +#else DWORD input_locale_id = (DWORD) GetKeyboardLayout (0); +#endif w32_keyboard_codepage = codepage_for_locale ((LCID) (input_locale_id & 0xffff)); } --------------000202010404000906040305-- ------------=_1364084462-8988-1--