=== 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)); }