# HG changeset patch # User Richard M. Stallman # Date 817037229 0 # Node ID 47484dd9a970daad8c2f1a5a4721c9cba66468e3 # Parent 276f513076a91d274e5cf167a5f1da10187f7c2b (dos_set_keyboard): If CODE is not recognized, initialize to the US keyboard table. diff -r 276f513076a9 -r 47484dd9a970 src/msdos.c --- 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) {