From ef1bfd8f7102bca1947caf06ec22b1b17ed46152 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 22 Nov 1995 10:47:09 +0000 Subject: [PATCH] (dos_set_keyboard): If CODE is not recognized, initialize to the US keyboard table. --- src/msdos.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.39.2