diff options
| author | Richard M. Stallman | 1995-11-22 10:47:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-11-22 10:47:09 +0000 |
| commit | ef1bfd8f7102bca1947caf06ec22b1b17ed46152 (patch) | |
| tree | c43caf9d85b5ac250692bc71f677734e0ec3f524 /src | |
| parent | c7ce28cedd2c3ce0dd4f7551e45532a20036b824 (diff) | |
| download | emacs-ef1bfd8f7102bca1947caf06ec22b1b17ed46152.tar.gz emacs-ef1bfd8f7102bca1947caf06ec22b1b17ed46152.zip | |
(dos_set_keyboard): If CODE is not recognized,
initialize to the US keyboard table.
Diffstat (limited to 'src')
| -rw-r--r-- | src/msdos.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) | |||
| 802 | int always; | 802 | int always; |
| 803 | { | 803 | { |
| 804 | int i; | 804 | int i; |
| 805 | |||
| 806 | /* Initialize to US settings, for countries that don't have their own. */ | ||
| 807 | keyboard = keyboard_layout_list[0].keyboard_map; | ||
| 808 | keyboard_map_all = always; | ||
| 809 | dos_keyboard_layout = 1; | ||
| 810 | |||
| 805 | for (i = 0; i < (sizeof (keyboard_layout_list)/sizeof (struct keyboard_layout_list)); i++) | 811 | for (i = 0; i < (sizeof (keyboard_layout_list)/sizeof (struct keyboard_layout_list)); i++) |
| 806 | if (code == keyboard_layout_list[i].country_code) | 812 | if (code == keyboard_layout_list[i].country_code) |
| 807 | { | 813 | { |