changeset 13624:47484dd9a970

(dos_set_keyboard): If CODE is not recognized, initialize to the US keyboard table.
author Richard M. Stallman <rms@gnu.org>
date Wed, 22 Nov 1995 10:47:09 +0000
parents 276f513076a9
children 397f07418271
files src/msdos.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/msdos.c	Tue Nov 21 23:35:25 1995 +0000
+++ b/src/msdos.c	Wed Nov 22 10:47:09 1995 +0000
@@ -802,6 +802,12 @@
      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)
       {