From: Richard M. Stallman Date: Wed, 22 Nov 1995 10:47:09 +0000 (+0000) Subject: (dos_set_keyboard): If CODE is not recognized, X-Git-Tag: emacs-19.34~2236 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ef1bfd8f7102bca1947caf06ec22b1b17ed46152;p=emacs.git (dos_set_keyboard): If CODE is not recognized, initialize to the US keyboard table. --- diff --git a/src/msdos.c b/src/msdos.c index f3a1e1da12d..35c46d99044 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -802,6 +802,12 @@ dos_set_keyboard (code, always) int always; { int i; + + /* Initialize to US settings, for countries that don't have their own. */ + keyboard = keyboard_layout_list[0].keyboard_map; + keyboard_map_all = always; + dos_keyboard_layout = 1; + for (i = 0; i < (sizeof (keyboard_layout_list)/sizeof (struct keyboard_layout_list)); i++) if (code == keyboard_layout_list[i].country_code) {